diff options
author | onpopov <onpopov@yandex-team.ru> | 2022-02-10 16:50:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:38 +0300 |
commit | 84a29dd4980d5b39615e453f289bd1a81213296d (patch) | |
tree | 5e320f10d6b5863e0d5ab1a8caa9eefbdaa5195f /util/string/cast.h | |
parent | 1717072c6635948128dad7b015a0ec05acbe913b (diff) | |
download | ydb-84a29dd4980d5b39615e453f289bd1a81213296d.tar.gz |
Restoring authorship annotation for <onpopov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/cast.h')
-rw-r--r-- | util/string/cast.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/cast.h b/util/string/cast.h index 90e925c194..6fcdb5676f 100644 --- a/util/string/cast.h +++ b/util/string/cast.h @@ -104,13 +104,13 @@ inline TString ToString(char* s) { } /* - * Wrapper for wide strings. - */ + * Wrapper for wide strings. + */ template <class T> inline TUtf16String ToWtring(const T& t) { return TUtf16String::FromAscii(ToString(t)); -} - +} + inline const TUtf16String& ToWtring(const TUtf16String& w) { return w; } @@ -122,7 +122,7 @@ inline const TUtf16String& ToWtring(TUtf16String& w) { struct TFromStringException: public TBadCastException { }; -/* +/* * specialized for: * bool * short |