23 #if !defined (octave_pathsearch_h)
24 #define octave_pathsearch_h 1
36 dir_path (
const std::string& s = std::string (),
37 const std::string&
d = std::string ())
38 : p_orig (s), p_default (
d), initialized (false), p (), pv ()
40 if (! p_orig.empty ())
45 : p_orig (dp.p_orig), p_default (dp.p_default),
46 initialized (dp.initialized), p (dp.p), pv (dp.pv)
61 void set (
const std::string& s)
71 std::string find_first (
const std::string&);
72 std::string
find (
const std::string& nm) {
return find_first (nm); }
87 return static_members::path_sep_char ();
92 static_members::path_sep_char (c);
97 return static_members::path_sep_str ();
100 static bool is_path_sep (
char c) {
return c == path_sep_char (); }
135 return instance_ok () ? instance->xpath_sep_char : 0;
142 instance->xpath_sep_char = c;
143 instance->xpath_sep_str = std::string (1, c);
149 return instance_ok () ? instance->xpath_sep_str : std::string ();
158 static bool instance_ok (
void);
std::string find(const std::string &nm)
static std::string path_sep_str(void)
static string_vector find_first_of(const std::string &path, const string_vector &names, bool must_exist, bool all)
static char path_sep_char(void)
std::string xpath_sep_str
static std::string path_sep_str(void)
static bool is_path_sep(char c)
static string_vector names(const map_type &lst)
static static_members * instance
F77_RET_T const double const double double * d
dir_path(const dir_path &dp)
static void cleanup_instance(void)
dir_path(const std::string &s=std::string(), const std::string &d=std::string())
static char path_sep_char(void)
static void path_sep_char(char c)
void set(const std::string &s)
static void path_sep_char(char c)