diff options
author | alzobnin <alzobnin@yandex-team.ru> | 2022-02-10 16:46:50 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:50 +0300 |
commit | c9317148cc3e9f1b0bc0ce95172f47e099f2c554 (patch) | |
tree | 1e426d905ba97d8c281c5cc53389faaced3832c7 /library/cpp/charset/codepage.cpp | |
parent | 6170310e8721e225f64ddabf7a7358253d7a1249 (diff) | |
download | ydb-c9317148cc3e9f1b0bc0ce95172f47e099f2c554.tar.gz |
Restoring authorship annotation for <alzobnin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/charset/codepage.cpp')
-rw-r--r-- | library/cpp/charset/codepage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/charset/codepage.cpp b/library/cpp/charset/codepage.cpp index 0431bef31b..e3ba5ad234 100644 --- a/library/cpp/charset/codepage.cpp +++ b/library/cpp/charset/codepage.cpp @@ -213,7 +213,7 @@ static inline RECODE_RESULT utf8_read_rune_from_unknown_plane(TxChar& rune, size rune_len = 0; - size_t _len = UTF8RuneLen((unsigned char)(*s)); + size_t _len = UTF8RuneLen((unsigned char)(*s)); if (s + _len > end) return RECODE_EOINPUT; //[EOINPUT] if (_len == 0) @@ -221,7 +221,7 @@ static inline RECODE_RESULT utf8_read_rune_from_unknown_plane(TxChar& rune, size wchar32 _rune = (ui8)(*s++); //[00000000 0XXXXXXX] if (_len > 1) { - _rune &= UTF8LeadByteMask(_len); + _rune &= UTF8LeadByteMask(_len); wchar32 ch = *s++; if ((ch & 0xFFC0) != 0xF080) return RECODE_BROKENSYMBOL; //[BROKENSYMBOL] in second byte |