diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /util/string | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 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 90e925c194..d890b5a068 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 b01be65b0e..2f56882d26 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 b166fad1f3..5c7bb70791 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 bc46d9e64c..38b0d765a0 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 9ba401f0a2..ae263ada8d 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 { |