Make minor style change(unescape_string())

This commit is contained in:
Craig Robbins 2015-01-16 21:05:44 +10:00
parent e5b636712c
commit 5481e38d0b
1 changed files with 4 additions and 3 deletions

View File

@ -406,10 +406,11 @@ inline std::basic_string<T> unescape_string(std::basic_string<T> &s)
std::basic_string<T> res; std::basic_string<T> res;
for (size_t i = 0; i < s.length(); i++) { for (size_t i = 0; i < s.length(); i++) {
if (s[i] == '\\') if (s[i] == '\\') {
i++; i++;
if (i >= s.length()) if (i >= s.length())
break; break;
}
res += s[i]; res += s[i];
} }