Mercurial > hg > octave-lyh
diff liboctave/pathsearch.h @ 8010:0e9b6af36559
style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 05 Aug 2008 12:14:33 -0400 |
parents | 4d13a7a2f6ab |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/liboctave/pathsearch.h +++ b/liboctave/pathsearch.h @@ -83,8 +83,39 @@ init (); } + static char path_sep_char (void) + { + return static_members::path_sep_char (); + } + + static std::string path_sep_str (void) + { + return static_members::path_sep_str (); + } + + static bool is_path_sep (char c) { return c == path_sep_char (); } + private: + // The colon separated list that we were given. + std::string p_orig; + + // The default path. If specified, replaces leading, trailing, or + // doubled colons in p_orig. + 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. + std::string p; + + // The elements of the list. + string_vector pv; + + void init (void); + // Use a singleton class for these data members instead of just // making them static members of the dir_path class so that we can // ensure proper initialization. @@ -121,41 +152,6 @@ std::string xpath_sep_str; }; - -public: - - static char path_sep_char (void) - { - return static_members::path_sep_char (); - } - - static std::string path_sep_str (void) - { - return static_members::path_sep_str (); - } - - static bool is_path_sep (char c) { return c == path_sep_char (); } - -private: - - // The colon separated list that we were given. - std::string p_orig; - - // The default path. If specified, replaces leading, trailing, or - // doubled colons in p_orig. - 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. - std::string p; - - // The elements of the list. - string_vector pv; - - void init (void); }; #endif