added: method ConfParser::UseEscapeChar(bool escape)

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@642 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-08-16 14:15:37 +00:00
parent ca4e53bb0f
commit eec0ddf466
2 changed files with 22 additions and 1 deletions

View File

@@ -122,6 +122,7 @@ config syntax:
"\a" gives "a"
"\\" gives "\"
"\Z" gives "Z" and so on
you can call UseEscapeChar(false) to turn this off
*/
@@ -202,6 +203,15 @@ public:
void SkipEmpty(bool skip);
/*
'\' character is used to escape other characters in a quoted string
so "some \t t\"ext" will produce "some t t"ext"
(this is only use in quoted string)
default: true
*/
void UseEscapeChar(bool escape);
/*
those methods are used to extract information from table or table_single
as a parameter they take the name of an option
@@ -325,6 +335,10 @@ private:
bool skip_empty;
/*
if true you can use an escape character '\' in quoted values
*/
bool use_escape_char;
std::string default_str;
int default_int;