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 | 8773f7661194d4c0bdb1e3937b2ff7ae01dd13f8 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/string/cast.h | |
parent | 84a29dd4980d5b39615e453f289bd1a81213296d (diff) | |
download | ydb-8773f7661194d4c0bdb1e3937b2ff7ae01dd13f8.tar.gz |
Restoring authorship annotation for <onpopov@yandex-team.ru>. Commit 2 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 6fcdb5676f..90e925c194 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 |