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 | 58328199370730ba4c7d3f4e7b856f9b8b7f734a (patch) | |
tree | 039bb78d064b2dc1690cd46b4e5e3004369de380 /library/cpp/charset/recyr.hh | |
parent | 3d7afc8b3f778e548b56f985d708ae4e0733b6e2 (diff) | |
download | ydb-58328199370730ba4c7d3f4e7b856f9b8b7f734a.tar.gz |
Restoring authorship annotation for <vsolon@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/charset/recyr.hh')
-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 5ec8734bcf..4effe51b43 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; |