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),
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); }
85 static char path_sep_char (
void)
87 return static_members::path_sep_char ();
90 static void path_sep_char (
char c)
92 static_members::path_sep_char (c);
95 static std::string path_sep_str (
void)
97 return static_members::path_sep_str ();
100 static bool is_path_sep (
char c) {
return c == path_sep_char (); }
133 static char path_sep_char (
void)
135 return instance_ok () ? instance->xpath_sep_char : 0;
138 static void path_sep_char (
char c)
142 instance->xpath_sep_char = c;
143 instance->xpath_sep_str = std::string (1, c);
147 static std::string path_sep_str (
void)
149 return instance_ok () ? instance->xpath_sep_str : std::string ();
158 static bool instance_ok (
void);