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 | 6e38f52f898d7c077ddd319800b4014967a5ca76 (patch) | |
tree | f0b2473cfc98506158b8f1d3d387c4f478ade18e /util/charset/wide.h | |
parent | bd085aee9b4f7a0bee302ce687964ffb7098f986 (diff) | |
download | ydb-6e38f52f898d7c077ddd319800b4014967a5ca76.tar.gz |
Restoring authorship annotation for Evgeny Grechnikov <diamondaz@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/charset/wide.h')
-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 04e6928aab..9c163517cf 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); } |