diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /util/string | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string')
-rw-r--r-- | util/string/cast.h | 8 | ||||
-rw-r--r-- | util/string/escape.h | 2 | ||||
-rw-r--r-- | util/string/join.h | 2 | ||||
-rw-r--r-- | util/string/split.h | 4 | ||||
-rw-r--r-- | util/string/vector.cpp | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/util/string/cast.h b/util/string/cast.h index d890b5a068..90e925c194 100644 --- a/util/string/cast.h +++ b/util/string/cast.h @@ -147,7 +147,7 @@ inline T FromString(const TChar* data, size_t len) { template <typename T, typename TChar> inline T FromString(const TChar* data) { - return ::FromString<T>(data, std::char_traits<TChar>::length(data)); + return ::FromString<T>(data, std::char_traits<TChar>::length(data)); } template <class T> @@ -207,7 +207,7 @@ inline ::NPrivate::TFromString<TChar> FromString(const TChar* data, size_t len) template <typename TChar> inline ::NPrivate::TFromString<TChar> FromString(const TChar* data) { - return ::NPrivate::TFromString<TChar>(data, std::char_traits<TChar>::length(data)); + return ::NPrivate::TFromString<TChar>(data, std::char_traits<TChar>::length(data)); } template <typename T> @@ -233,7 +233,7 @@ inline bool TryFromString(const TChar* data, size_t len, T& result) { template <typename T, typename TChar> inline bool TryFromString(const TChar* data, T& result) { - return TryFromString<T>(data, std::char_traits<TChar>::length(data), result); + return TryFromString<T>(data, std::char_traits<TChar>::length(data), result); } template <class T, class TChar> @@ -336,7 +336,7 @@ TInt IntFromString(const TChar* str, size_t len); template <class TInt, int base, class TChar> inline TInt IntFromString(const TChar* str) { - return IntFromString<TInt, base>(str, std::char_traits<TChar>::length(str)); + return IntFromString<TInt, base>(str, std::char_traits<TChar>::length(str)); } template <class TInt, int base, class TStringType> diff --git a/util/string/escape.h b/util/string/escape.h index 2f56882d26..b01be65b0e 100644 --- a/util/string/escape.h +++ b/util/string/escape.h @@ -46,7 +46,7 @@ static inline TBasicString<TChar> EscapeC(TChar ch) { template <typename TChar> static inline TBasicString<TChar> EscapeC(const TChar* str) { - return EscapeC(str, std::char_traits<TChar>::length(str)); + return EscapeC(str, std::char_traits<TChar>::length(str)); } TString& EscapeC(const TStringBuf str, TString& res); diff --git a/util/string/join.h b/util/string/join.h index 5c7bb70791..b166fad1f3 100644 --- a/util/string/join.h +++ b/util/string/join.h @@ -62,7 +62,7 @@ namespace NPrivate { template <> inline size_t GetLength(const char* const& s) { - return (s ? std::char_traits<char>::length(s) : 0); + return (s ? std::char_traits<char>::length(s) : 0); } inline size_t GetAppendLength(const TStringBuf /*delim*/) { diff --git a/util/string/split.h b/util/string/split.h index 38b0d765a0..bc46d9e64c 100644 --- a/util/string/split.h +++ b/util/string/split.h @@ -76,7 +76,7 @@ static inline I1* FastStrChr(I1* str, I2 f) noexcept { I1* ret = NStringSplitPrivate::Find(str, f); if (!ret) { - ret = str + std::char_traits<I1>::length(str); + ret = str + std::char_traits<I1>::length(str); } return ret; @@ -106,7 +106,7 @@ template <class Char> struct TStringDelimiter { inline TStringDelimiter(Char* delim) noexcept : Delim(delim) - , Len(std::char_traits<Char>::length(delim)) + , Len(std::char_traits<Char>::length(delim)) { } diff --git a/util/string/vector.cpp b/util/string/vector.cpp index ae263ada8d..9ba401f0a2 100644 --- a/util/string/vector.cpp +++ b/util/string/vector.cpp @@ -53,7 +53,7 @@ static void SplitStringImplT(TVector<std::conditional_t<std::is_same<TChr, wchar } if (*(delim + 1)) { - TStringDelimiter<const TChr> d(delim, std::char_traits<TChr>::length(delim)); + TStringDelimiter<const TChr> d(delim, std::char_traits<TChr>::length(delim)); DoSplit0(res, str, d, maxFields, options); } else { |