diff options
author | sobols <sobols@yandex-team.ru> | 2022-02-10 16:47:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:08 +0300 |
commit | 03335cb18337a0ef51966452a66a69b01abea218 (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /util/string/escape.cpp | |
parent | 09961b69c61f471ddd594e0fd877df62a8021562 (diff) | |
download | ydb-03335cb18337a0ef51966452a66a69b01abea218.tar.gz |
Restoring authorship annotation for <sobols@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/escape.cpp')
-rw-r--r-- | util/string/escape.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/escape.cpp b/util/string/escape.cpp index e448d4cf1a..cd09a7dbd0 100644 --- a/util/string/escape.cpp +++ b/util/string/escape.cpp @@ -179,7 +179,7 @@ template TUtf16String& EscapeCImpl<TUtf16String::TChar>(const TUtf16String::TCha namespace { template <class TStr> - inline void AppendUnicode(TStr& s, wchar32 v) { + inline void AppendUnicode(TStr& s, wchar32 v) { char buf[10]; size_t sz = 0; @@ -187,7 +187,7 @@ namespace { s.AppendNoAlias(buf, sz); } - inline void AppendUnicode(TUtf16String& s, wchar32 v) { + inline void AppendUnicode(TUtf16String& s, wchar32 v) { WriteSymbol(v, s); } @@ -264,12 +264,12 @@ static TStr& DoUnescapeC(const TChar* p, size_t sz, TStr& res) { res.append('\v'); break; case 'u': { - ui16 cp[2]; + ui16 cp[2]; if (ParseHex<4>(p + 1, pe, cp[0])) { if (Y_UNLIKELY(cp[0] >= 0xD800 && cp[0] <= 0xDBFF && ParseHex<4>(p + 7, pe, cp[1]) && p[5] == '\\' && p[6] == 'u')) { - const wchar16 wbuf[] = {wchar16(cp[0]), wchar16(cp[1])}; - AppendUnicode(res, ReadSymbol(wbuf, wbuf + 2)); + const wchar16 wbuf[] = {wchar16(cp[0]), wchar16(cp[1])}; + AppendUnicode(res, ReadSymbol(wbuf, wbuf + 2)); p += 10; } else { AppendUnicode(res, (wchar32)cp[0]); |