diff options
author | vsolon <vsolon@yandex-team.ru> | 2022-02-10 16:50:28 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:28 +0300 |
commit | 9d0e9c90c05aacc70c91ef99d5b4724af73a591f (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/charset | |
parent | 58328199370730ba4c7d3f4e7b856f9b8b7f734a (diff) | |
download | ydb-9d0e9c90c05aacc70c91ef99d5b4724af73a591f.tar.gz |
Restoring authorship annotation for <vsolon@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/charset')
-rw-r--r-- | library/cpp/charset/recyr.hh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/charset/recyr.hh b/library/cpp/charset/recyr.hh index 4effe51b43..5ec8734bcf 100644 --- a/library/cpp/charset/recyr.hh +++ b/library/cpp/charset/recyr.hh @@ -48,15 +48,15 @@ inline RECODE_RESULT RecodeFromUnicode(ECharset to, const TCharType* in, char* o inline RECODE_RESULT RecodeFromUnicode(ECharset theEncoding, const wchar16* chars, size_t length, char* bytes, size_t size, size_t* read = nullptr, size_t* written = nullptr) { - size_t w = 0, r = 0; + size_t w = 0, r = 0; RECODE_RESULT rc = ::RecodeFromUnicode(theEncoding, chars, bytes, length, size, r, w); - if (read) - *read = r; - if (written) - *written = w; - return rc; -} - + if (read) + *read = r; + if (written) + *written = w; + return rc; +} + inline RECODE_RESULT Recode(ECharset from, ECharset to, const char* in, char* out, size_t inSize, size_t outSize, size_t& inRead, size_t& outWritten) { inRead = 0; outWritten = 0; |