added: Pattern::allow_include flag (default true)
if false there is no allowed [include ...] directive
(this directive will be skipped)
added: Pattern::ParseString(const std::string & str);
Pattern::ParseString(const char * str);
can create the pattern from a string
git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@94 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
1 parent
f8f55eae77
commit
141e1f67b3
2 files changed
+30
-1
No files matched your search
@@ -68,8 +68,12 @@ void SplitUnixDirectory(const std::string & name, std::string & dir, std::string
|
||||
class Pattern
|
||||
{
|
||||
public:
|
||||
Pattern();
|
||||
|
||||
void ParseFile(const std::string & file_name);
|
||||
void ParseFile(const char * file_name);
|
||||
void ParseString(const std::string & str);
|
||||
void ParseString(const char * str);
|
||||
void Directory(const char * d);
|
||||
void Directory(const std::string & d);
|
||||
|
||||
@@ -107,6 +111,8 @@ public:
|
||||
|
||||
Item item_root;
|
||||
|
||||
bool allow_include;
|
||||
|
||||
private:
|
||||
const char * itext;
|
||||
std::string directory;
|
||||
|
||||
Reference in new issue
Block a user