aboutsummaryrefslogtreecommitdiffstats
path: root/util/charset/wide.h
diff options
context:
space:
mode:
authorpavelgur <pavelgur@yandex-team.ru>2022-02-10 16:50:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:19 +0300
commitdb222959b3748242024c781f563f31a342492476 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/charset/wide.h
parent173c6a0fa7f439b2c207c2f258e52ccb4ac181cf (diff)
downloadydb-db222959b3748242024c781f563f31a342492476.tar.gz
Restoring authorship annotation for <pavelgur@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/charset/wide.h')
-rw-r--r--util/charset/wide.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/charset/wide.h b/util/charset/wide.h
index 950c6c44e6..04e6928aab 100644
--- a/util/charset/wide.h
+++ b/util/charset/wide.h
@@ -406,12 +406,12 @@ inline void WideToUTF8(const TCharType* text, size_t len, char* dest, size_t& wr
written = p - reinterpret_cast<unsigned char*>(dest);
}
-constexpr size_t WideToUTF8BufferSize(const size_t inputStringSize) noexcept {
- return inputStringSize * 4; // * 4 because the conversion functions can convert unicode character into maximum 4 bytes of UTF8
-}
-
+constexpr size_t WideToUTF8BufferSize(const size_t inputStringSize) noexcept {
+ return inputStringSize * 4; // * 4 because the conversion functions can convert unicode character into maximum 4 bytes of UTF8
+}
+
inline TStringBuf WideToUTF8(const TWtringBuf src, TString& dst) {
- dst.ReserveAndResize(WideToUTF8BufferSize(src.size()));
+ dst.ReserveAndResize(WideToUTF8BufferSize(src.size()));
size_t written = 0;
WideToUTF8(src.data(), src.size(), dst.begin(), written);
Y_ASSERT(dst.size() >= written);