diff options
author | Evgeny Grechnikov <diamondaz@yandex.ru> | 2022-02-10 16:46:20 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:20 +0300 |
commit | c73494e681a4e497ae191ada07a55a6bf55885ff (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/charset | |
parent | 6e38f52f898d7c077ddd319800b4014967a5ca76 (diff) | |
download | ydb-c73494e681a4e497ae191ada07a55a6bf55885ff.tar.gz |
Restoring authorship annotation for Evgeny Grechnikov <diamondaz@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/charset')
-rw-r--r-- | util/charset/wide.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/charset/wide.h b/util/charset/wide.h index 9c163517cf..04e6928aab 100644 --- a/util/charset/wide.h +++ b/util/charset/wide.h @@ -82,7 +82,7 @@ inline wchar32 ReadSymbol(const wchar16* begin, const wchar16* end) noexcept { Y_ASSERT(begin < end); if (IsW16SurrogateLead(*begin)) { if (begin + 1 < end && IsW16SurrogateTail(*(begin + 1))) - return ::NDetail::ReadSurrogatePair(begin); + return ::NDetail::ReadSurrogatePair(begin); return BROKEN_RUNE; } else if (IsW16SurrogateTail(*begin)) { @@ -103,7 +103,7 @@ inline wchar32 ReadSymbolAndAdvance(const wchar16*& begin) noexcept { if (IsW16SurrogateLead(begin[0])) { if (IsW16SurrogateTail(begin[1])) { Y_ASSERT(begin[1] != 0); - const wchar32 c = ::NDetail::ReadSurrogatePair(begin); + const wchar32 c = ::NDetail::ReadSurrogatePair(begin); begin += 2; return c; } @@ -126,7 +126,7 @@ inline wchar32 ReadSymbolAndAdvance(const wchar16*& begin, const wchar16* end) n Y_ASSERT(begin < end); if (IsW16SurrogateLead(begin[0])) { if (begin + 1 != end && IsW16SurrogateTail(begin[1])) { - const wchar32 c = ::NDetail::ReadSurrogatePair(begin); + const wchar32 c = ::NDetail::ReadSurrogatePair(begin); begin += 2; return c; } @@ -157,7 +157,7 @@ inline size_t WriteSymbol(wchar32 s, T& dest) noexcept { return WriteSymbol(static_cast<wchar16>(BROKEN_RUNE), dest); } - ::NDetail::WriteSurrogatePair(s, dest); + ::NDetail::WriteSurrogatePair(s, dest); return 2; } @@ -176,7 +176,7 @@ inline bool WriteSymbol(wchar32 s, wchar16*& dest, const wchar16* destEnd) noexc if (dest + 2 > destEnd) return false; - ::NDetail::WriteSurrogatePair(s, dest); + ::NDetail::WriteSurrogatePair(s, dest); } else { *(dest++) = static_cast<wchar16>(s); } |