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

@@ -25,6 +25,7 @@ ConfParser::ConfParser()
list_delimiter = ',';
split_single = false;
skip_empty = false;
use_escape_char = true;
default_str = "";
default_int = 0;
@@ -45,6 +46,12 @@ void ConfParser::SkipEmpty(bool skip)
}
void ConfParser::UseEscapeChar(bool escape)
{
use_escape_char = escape;
}
ConfParser::Status ConfParser::Parse(const char * file_name)
{
line = 1;
@@ -253,7 +260,7 @@ bool ConfParser::ReadValueQuoted()
while( lastc != '"' && lastc != -1 )
{
if( lastc == '\\' )
if( use_escape_char && lastc == '\\' )
ReadChar();
value_item += lastc;