fix i18n escape char '\\' issue

This commit is contained in:
Jinhao 2015-12-04 23:21:33 +08:00
parent a5df90f8a9
commit 21a5e2fc2e

View File

@ -76,17 +76,19 @@ namespace nana
if (escape)
{
escape = false;
str_ += *i;
continue;
}
if ('"' == *i)
{
str_.append(read_ptr_ + 1, i - read_ptr_ - 1);
read_ptr_ = i + 1;
reach_right_quota = true;
break;
}
else if ('\\' == *i)
else if ('\\' != *i)
str_ += *i;
else
escape = true;
}
_m_eat_ws();