aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/charset/wide.h
diff options
context:
space:
mode:
authormuzich <muzich@yandex-team.ru>2022-02-10 16:49:54 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:54 +0300
commitbf6bd1f317019d83a3f8d5d39c2d0e9d6d705e40 (patch)
treebfb62aa73647b9e0dea416c9055ba5d5f7302dd7 /library/cpp/charset/wide.h
parent75494e834356f7a748c7193ccb6a5aa4dc981f4f (diff)
downloadydb-bf6bd1f317019d83a3f8d5d39c2d0e9d6d705e40.tar.gz
Restoring authorship annotation for <muzich@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/charset/wide.h')
-rw-r--r--library/cpp/charset/wide.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/charset/wide.h b/library/cpp/charset/wide.h
index 32d30e849e..6da96c3b30 100644
--- a/library/cpp/charset/wide.h
+++ b/library/cpp/charset/wide.h
@@ -184,7 +184,7 @@ namespace NDetail {
// special implementation for robust utf8 functions
template <typename TResult>
- TWtringBuf RecodeUTF8Robust(const TStringBuf src, TResult& dst) {
+ TWtringBuf RecodeUTF8Robust(const TStringBuf src, TResult& dst) {
// make enough room for re-coded string
wchar16* dstbuf = TRecodeResultOps<TResult>::Reserve(dst, src.size() * TRecodeTraits<wchar16>::ReserveSize);
@@ -208,17 +208,17 @@ namespace NDetail {
// Write result into @dst. Return string-buffer pointing to re-coded content of @dst.
template <bool robust>
-inline TWtringBuf CharToWide(const TStringBuf src, TUtf16String& dst, ECharset encoding) {
+inline TWtringBuf CharToWide(const TStringBuf src, TUtf16String& dst, ECharset encoding) {
if (robust && CODES_UTF8 == encoding)
return ::NDetail::RecodeUTF8Robust(src, dst);
return ::NDetail::Recode<char>(src, dst, encoding);
}
-inline TWtringBuf CharToWide(const TStringBuf src, TUtf16String& dst, ECharset encoding) {
+inline TWtringBuf CharToWide(const TStringBuf src, TUtf16String& dst, ECharset encoding) {
return ::NDetail::Recode<char>(src, dst, encoding);
}
-inline TStringBuf WideToChar(const TWtringBuf src, TString& dst, ECharset encoding) {
+inline TStringBuf WideToChar(const TWtringBuf src, TString& dst, ECharset encoding) {
return ::NDetail::Recode<wchar16>(src, dst, encoding);
}
@@ -284,20 +284,20 @@ inline TUtf16String UTF8ToWide(const char* text, size_t len, const CodePage& cp)
return w;
}
-inline TString WideToChar(const TWtringBuf w, ECharset enc) {
+inline TString WideToChar(const TWtringBuf w, ECharset enc) {
return WideToChar(w.data(), w.size(), enc);
}
-inline TUtf16String CharToWide(const TStringBuf s, ECharset enc) {
+inline TUtf16String CharToWide(const TStringBuf s, ECharset enc) {
return CharToWide<false>(s.data(), s.size(), enc);
}
template <bool robust>
-inline TUtf16String CharToWide(const TStringBuf s, ECharset enc) {
+inline TUtf16String CharToWide(const TStringBuf s, ECharset enc) {
return CharToWide<robust>(s.data(), s.size(), enc);
}
-inline TUtf16String CharToWide(const TStringBuf s, const CodePage& cp) {
+inline TUtf16String CharToWide(const TStringBuf s, const CodePage& cp) {
return CharToWide(s.data(), s.size(), cp);
}