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