aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/cast.h
diff options
context:
space:
mode:
authorantonovvk <antonovvk@yandex-team.ru>2022-02-10 16:47:51 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:51 +0300
commit37a63debdc21e372d99e1808cdd31aecf75018c3 (patch)
treefd84293fb9a1b16381dd6c1a5e14c78afacb8710 /util/string/cast.h
parent1fe621e70df847cc201ac942fe6d7804ea10508d (diff)
downloadydb-37a63debdc21e372d99e1808cdd31aecf75018c3.tar.gz
Restoring authorship annotation for <antonovvk@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/cast.h')
-rw-r--r--util/string/cast.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/string/cast.h b/util/string/cast.h
index 90e925c194..eee2ba1813 100644
--- a/util/string/cast.h
+++ b/util/string/cast.h
@@ -3,7 +3,7 @@
#include <util/system/defaults.h>
#include <util/stream/str.h>
#include <util/generic/string.h>
-#include <util/generic/strbuf.h>
+#include <util/generic/strbuf.h>
#include <util/generic/typetraits.h>
#include <util/generic/yexception.h>
@@ -151,11 +151,11 @@ inline T FromString(const TChar* data) {
}
template <class T>
-inline T FromString(const TStringBuf& s) {
+inline T FromString(const TStringBuf& s) {
return ::FromString<T>(s.data(), s.size());
-}
-
-template <class T>
+}
+
+template <class T>
inline T FromString(const TString& s) {
return ::FromString<T>(s.data(), s.size());
}
@@ -171,11 +171,11 @@ inline TString FromString<TString>(const TString& s) {
}
template <class T>
-inline T FromString(const TWtringBuf& s) {
+inline T FromString(const TWtringBuf& s) {
return ::FromString<T, typename TWtringBuf::char_type>(s.data(), s.size());
-}
-
-template <class T>
+}
+
+template <class T>
inline T FromString(const TUtf16String& s) {
return ::FromString<T, wchar16>(s.data(), s.size());
}