mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
put default search path delimiters in a global constant
This commit is contained in:
parent
a4d0d79e43
commit
f22539a54b
@ -21,6 +21,8 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
const string standard_delimiters = ": \n\t";
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: DSearchPath::Results::Constructor
|
||||
// Access: Public
|
||||
|
@ -25,6 +25,8 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
extern EXPCL_DTOOL const string standard_delimiters;
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Class : DSearchPath
|
||||
// Description : This class stores a list of directories that can be
|
||||
@ -55,7 +57,7 @@ public:
|
||||
|
||||
PUBLISHED:
|
||||
DSearchPath();
|
||||
DSearchPath(const string &path, const string &delimiters = ": \t\n");
|
||||
DSearchPath(const string &path, const string &delimiters = standard_delimiters);
|
||||
DSearchPath(const DSearchPath ©);
|
||||
void operator = (const DSearchPath ©);
|
||||
~DSearchPath();
|
||||
@ -64,7 +66,7 @@ PUBLISHED:
|
||||
void append_directory(const Filename &directory);
|
||||
void prepend_directory(const Filename &directory);
|
||||
void append_path(const string &path,
|
||||
const string &delimiters = ": \t\n");
|
||||
const string &delimiters = standard_delimiters);
|
||||
void append_path(const DSearchPath &path);
|
||||
void prepend_path(const DSearchPath &path);
|
||||
|
||||
@ -77,7 +79,7 @@ PUBLISHED:
|
||||
|
||||
INLINE static Filename
|
||||
search_path(const Filename &filename, const string &path,
|
||||
const string &delimiters = ": \t\n");
|
||||
const string &delimiters = standard_delimiters);
|
||||
|
||||
void output(ostream &out, const string &separator = ":") const;
|
||||
void write(ostream &out, int indent_level = 0) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user