Mercurial > hg > octave-nkf
diff liboctave/pathsearch.h @ 3504:5eef8a2294bd
[project @ 2000-02-01 10:06:51 by jwe]
author | jwe |
---|---|
date | Tue, 01 Feb 2000 10:07:26 +0000 |
parents | 3ac3e8edc258 |
children | 4d3994172bd5 |
line wrap: on
line diff
--- a/liboctave/pathsearch.h +++ b/liboctave/pathsearch.h @@ -32,7 +32,8 @@ { public: - dir_path (const string& s = string (), const string& d = string ()) + dir_path (const std::string& s = std::string (), + const std::string& d = std::string ()) : p_orig (s), p_default (d), initialized (false) { if (! p_orig.empty ()) @@ -56,7 +57,7 @@ ~dir_path (void) { } - void set (const string& s) + void set (const std::string& s) { initialized = false; p_orig = s; @@ -66,12 +67,12 @@ string_vector elements (void); string_vector all_directories (void); - string find_first (const string&); - string find (const string& nm) { return find_first (nm); } + std::string find_first (const std::string&); + std::string find (const std::string& nm) { return find_first (nm); } - string_vector find_all (const string&); + string_vector find_all (const std::string&); - static void set_program_name (const string&); + static void set_program_name (const std::string&); void rehash (void) { @@ -82,18 +83,18 @@ private: // The colon separated list that we were given. - string p_orig; + std::string p_orig; // The default path. If specified, replaces leading, trailing, or // doubled colons in p_orig. - string p_default; + std::string p_default; // TRUE means we've unpacked p. bool initialized; // A version of the colon separate list on which we have performed // tilde, variable, and possibly default path expansion. - string p; + std::string p; // The elements of the list. string_vector pv;