diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-17 19:50:08 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-17 19:50:08 (GMT) |
commit | 1bbccc5bef5c195e9fae2d3d5ab350b386fe45cc (patch) | |
tree | 667a2ac3cb8fa341d4960ea0065e33775567ecaf /Source/cmCommandArgumentParserHelper.h | |
parent | b7a2d11f2d6dd27719282f1fcd2f69bef3513cac (diff) | |
download | CMake-1bbccc5bef5c195e9fae2d3d5ab350b386fe45cc.zip CMake-1bbccc5bef5c195e9fae2d3d5ab350b386fe45cc.tar.gz CMake-1bbccc5bef5c195e9fae2d3d5ab350b386fe45cc.tar.bz2 |
ENH: Improve handling of escaped characters
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.h')
-rw-r--r-- | Source/cmCommandArgumentParserHelper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmCommandArgumentParserHelper.h b/Source/cmCommandArgumentParserHelper.h index 3ecde79..dcbe5ef 100644 --- a/Source/cmCommandArgumentParserHelper.h +++ b/Source/cmCommandArgumentParserHelper.h @@ -47,6 +47,7 @@ public: // For the lexer: void AllocateParserType(cmCommandArgumentParserHelper::ParserType* pt, const char* str, int len = 0); + bool HandleEscapeSymbol(cmCommandArgumentParserHelper::ParserType* pt, char symbol); int LexInput(char* buf, int maxlen); void Error(const char* str); @@ -64,6 +65,7 @@ public: void SetLineFile(long line, const char* file); void SetEscapeQuotes(bool b) { m_EscapeQuotes = b; } + void SetNoEscapeMode(bool b) { m_NoEscapeMode = b; } const char* GetError() { return m_Error.c_str(); } @@ -97,6 +99,7 @@ private: long m_FileLine; bool m_EscapeQuotes; std::string m_Error; + bool m_NoEscapeMode; }; #endif |