aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/cast.cpp
diff options
context:
space:
mode:
authoraxc <axc@yandex-team.ru>2022-02-10 16:47:36 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:36 +0300
commit7b659037613268d5eac4a1b6a7c5eff3cd36d4bf (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /util/string/cast.cpp
parent1f5217043ad70f25dc35e75b3bd261a1e23d045e (diff)
downloadydb-7b659037613268d5eac4a1b6a7c5eff3cd36d4bf.tar.gz
Restoring authorship annotation for <axc@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/cast.cpp')
-rw-r--r--util/string/cast.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/string/cast.cpp b/util/string/cast.cpp
index 6f0ac738f7..aa1e65a8e9 100644
--- a/util/string/cast.cpp
+++ b/util/string/cast.cpp
@@ -529,9 +529,9 @@ TStringBuf FromStringImpl<TStringBuf>(const char* data, size_t len) {
template <>
std::string FromStringImpl<std::string>(const char* data, size_t len) {
return std::string(data, len);
-}
-
-template <>
+}
+
+template <>
TUtf16String FromStringImpl<TUtf16String>(const wchar16* data, size_t len) {
return TUtf16String(data, len);
}
@@ -556,11 +556,11 @@ bool TryFromStringImpl<TString>(const char* data, size_t len, TString& result) {
template <>
bool TryFromStringImpl<std::string>(const char* data, size_t len, std::string& result) {
- result.assign(data, len);
- return true;
-}
-
-template <>
+ result.assign(data, len);
+ return true;
+}
+
+template <>
bool TryFromStringImpl<TWtringBuf>(const wchar16* data, size_t len, TWtringBuf& result) {
result = {data, len};
return true;