fix i18n escape char '\\' issue
This commit is contained in:
parent
a5df90f8a9
commit
21a5e2fc2e
@ -76,17 +76,19 @@ namespace nana
|
|||||||
if (escape)
|
if (escape)
|
||||||
{
|
{
|
||||||
escape = false;
|
escape = false;
|
||||||
|
str_ += *i;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('"' == *i)
|
if ('"' == *i)
|
||||||
{
|
{
|
||||||
str_.append(read_ptr_ + 1, i - read_ptr_ - 1);
|
|
||||||
read_ptr_ = i + 1;
|
read_ptr_ = i + 1;
|
||||||
reach_right_quota = true;
|
reach_right_quota = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if ('\\' == *i)
|
else if ('\\' != *i)
|
||||||
|
str_ += *i;
|
||||||
|
else
|
||||||
escape = true;
|
escape = true;
|
||||||
}
|
}
|
||||||
_m_eat_ws();
|
_m_eat_ws();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user