diff options
author | Ilnur Khuziev <ilnur.khuziev@yandex.ru> | 2022-02-10 16:46:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:13 +0300 |
commit | 736dcd8ca259457a136f2f9f9168c44643914323 (patch) | |
tree | ddd46a036d68bfa83aa11b892f31243ea6b068a1 /util/string | |
parent | 9bf2fa2b060c9881d3135c2208c624a1dd546ecc (diff) | |
download | ydb-736dcd8ca259457a136f2f9f9168c44643914323.tar.gz |
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string')
-rw-r--r-- | util/string/ascii_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/benchmark/ascii/main.cpp | 2 | ||||
-rw-r--r-- | util/string/benchmark/cast/main.cpp | 2 | ||||
-rw-r--r-- | util/string/benchmark/float_to_string/main.cpp | 2 | ||||
-rw-r--r-- | util/string/benchmark/join/main.cpp | 2 | ||||
-rw-r--r-- | util/string/benchmark/subst_global/main.cpp | 2 | ||||
-rw-r--r-- | util/string/builder_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/cast_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/escape_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/hex_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/join_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/printf_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/split_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/strip_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/subst.cpp | 18 | ||||
-rw-r--r-- | util/string/subst.h | 4 | ||||
-rw-r--r-- | util/string/subst_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/type.cpp | 2 | ||||
-rw-r--r-- | util/string/type.h | 4 | ||||
-rw-r--r-- | util/string/type_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/util_ut.cpp | 2 | ||||
-rw-r--r-- | util/string/vector_ut.cpp | 2 |
22 files changed, 32 insertions, 32 deletions
diff --git a/util/string/ascii_ut.cpp b/util/string/ascii_ut.cpp index 89069fee50..2da5b47219 100644 --- a/util/string/ascii_ut.cpp +++ b/util/string/ascii_ut.cpp @@ -1,7 +1,7 @@ #include "ascii.h" #include <ctype.h> -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> Y_UNIT_TEST_SUITE(TAsciiTest) { Y_UNIT_TEST(TestAscii) { diff --git a/util/string/benchmark/ascii/main.cpp b/util/string/benchmark/ascii/main.cpp index 673047025d..a1036a01f7 100644 --- a/util/string/benchmark/ascii/main.cpp +++ b/util/string/benchmark/ascii/main.cpp @@ -1,4 +1,4 @@ -#include <library/cpp/testing/benchmark/bench.h> +#include <library/cpp/testing/benchmark/bench.h> #include <util/generic/xrange.h> #include <util/string/ascii.h> diff --git a/util/string/benchmark/cast/main.cpp b/util/string/benchmark/cast/main.cpp index f604712ab6..652af83901 100644 --- a/util/string/benchmark/cast/main.cpp +++ b/util/string/benchmark/cast/main.cpp @@ -1,4 +1,4 @@ -#include <library/cpp/testing/benchmark/bench.h> +#include <library/cpp/testing/benchmark/bench.h> #include <util/string/cast.h> #include <util/generic/xrange.h> diff --git a/util/string/benchmark/float_to_string/main.cpp b/util/string/benchmark/float_to_string/main.cpp index 1c7c0684a3..c13ca55ac3 100644 --- a/util/string/benchmark/float_to_string/main.cpp +++ b/util/string/benchmark/float_to_string/main.cpp @@ -1,4 +1,4 @@ -#include <library/cpp/testing/benchmark/bench.h> +#include <library/cpp/testing/benchmark/bench.h> #include <util/generic/singleton.h> #include <util/generic/vector.h> diff --git a/util/string/benchmark/join/main.cpp b/util/string/benchmark/join/main.cpp index 1a8633d3a8..ba5653813c 100644 --- a/util/string/benchmark/join/main.cpp +++ b/util/string/benchmark/join/main.cpp @@ -1,4 +1,4 @@ -#include <library/cpp/testing/benchmark/bench.h> +#include <library/cpp/testing/benchmark/bench.h> #include <util/generic/function.h> #include <util/generic/singleton.h> diff --git a/util/string/benchmark/subst_global/main.cpp b/util/string/benchmark/subst_global/main.cpp index e0decfa042..aa26383b39 100644 --- a/util/string/benchmark/subst_global/main.cpp +++ b/util/string/benchmark/subst_global/main.cpp @@ -1,4 +1,4 @@ -#include <library/cpp/testing/benchmark/bench.h> +#include <library/cpp/testing/benchmark/bench.h> #include <util/generic/cast.h> #include <util/generic/singleton.h> diff --git a/util/string/builder_ut.cpp b/util/string/builder_ut.cpp index 22def683ec..5c1f24a7e4 100644 --- a/util/string/builder_ut.cpp +++ b/util/string/builder_ut.cpp @@ -1,6 +1,6 @@ #include "builder.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> static void TestEquals(const TString& expected, const TString& actual) { UNIT_ASSERT_VALUES_EQUAL(expected, actual); diff --git a/util/string/cast_ut.cpp b/util/string/cast_ut.cpp index 033450c38c..c7a802ba06 100644 --- a/util/string/cast_ut.cpp +++ b/util/string/cast_ut.cpp @@ -1,6 +1,6 @@ #include "cast.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <util/charset/wide.h> #include <util/system/defaults.h> diff --git a/util/string/escape_ut.cpp b/util/string/escape_ut.cpp index cd38ecffd3..366b6688dc 100644 --- a/util/string/escape_ut.cpp +++ b/util/string/escape_ut.cpp @@ -1,6 +1,6 @@ #include "escape.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <util/generic/string.h> #include <util/charset/wide.h> diff --git a/util/string/hex_ut.cpp b/util/string/hex_ut.cpp index 39a83d5e62..f4e8ba5bb0 100644 --- a/util/string/hex_ut.cpp +++ b/util/string/hex_ut.cpp @@ -1,6 +1,6 @@ #include "hex.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> Y_UNIT_TEST_SUITE(THexCodingTest) { Y_UNIT_TEST(TestEncode) { diff --git a/util/string/join_ut.cpp b/util/string/join_ut.cpp index 3ed2b2459c..5f27e6b9ac 100644 --- a/util/string/join_ut.cpp +++ b/util/string/join_ut.cpp @@ -1,6 +1,6 @@ #include "join.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <util/generic/vector.h> #include <util/stream/output.h> diff --git a/util/string/printf_ut.cpp b/util/string/printf_ut.cpp index 2b2f980b70..e82db07a8d 100644 --- a/util/string/printf_ut.cpp +++ b/util/string/printf_ut.cpp @@ -1,6 +1,6 @@ #include "printf.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> Y_UNIT_TEST_SUITE(TStringPrintf) { Y_UNIT_TEST(TestSprintf) { diff --git a/util/string/split_ut.cpp b/util/string/split_ut.cpp index 43e59f2d75..dc57ebf2d8 100644 --- a/util/string/split_ut.cpp +++ b/util/string/split_ut.cpp @@ -1,6 +1,6 @@ #include "split.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <util/stream/output.h> #include <util/charset/wide.h> diff --git a/util/string/strip_ut.cpp b/util/string/strip_ut.cpp index d1029d1498..f19a17d439 100644 --- a/util/string/strip_ut.cpp +++ b/util/string/strip_ut.cpp @@ -1,6 +1,6 @@ #include "strip.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <util/charset/wide.h> diff --git a/util/string/subst.cpp b/util/string/subst.cpp index b2df328dc1..034002ac8e 100644 --- a/util/string/subst.cpp +++ b/util/string/subst.cpp @@ -153,9 +153,9 @@ inline size_t SubstCharGlobalImpl(TStringType& s, typename TStringType::value_ty * sure that we can make safe casts between values of these types and pointers. */ static_assert(sizeof(wchar16) == sizeof(char16_t), ""); -static_assert(sizeof(wchar32) == sizeof(char32_t), ""); +static_assert(sizeof(wchar32) == sizeof(char32_t), ""); static_assert(std::is_unsigned<wchar16>::value == std::is_unsigned<char16_t>::value, ""); -static_assert(std::is_unsigned<wchar32>::value == std::is_unsigned<char32_t>::value, ""); +static_assert(std::is_unsigned<wchar32>::value == std::is_unsigned<char32_t>::value, ""); size_t SubstGlobal(TString& text, const TStringBuf what, const TStringBuf with, size_t from) { return SubstGlobalImpl(text, what, with, from); @@ -169,10 +169,10 @@ size_t SubstGlobal(TUtf16String& text, const TWtringBuf what, const TWtringBuf w return SubstGlobalImpl(text, what, with, from); } -size_t SubstGlobal(TUtf32String& text, const TUtf32StringBuf what, const TUtf32StringBuf with, size_t from) { - return SubstGlobalImpl(text, what, with, from); -} - +size_t SubstGlobal(TUtf32String& text, const TUtf32StringBuf what, const TUtf32StringBuf with, size_t from) { + return SubstGlobalImpl(text, what, with, from); +} + size_t SubstGlobal(std::u16string& text, const TWtringBuf what, const TWtringBuf with, size_t from) { return SubstGlobalImpl(text, std::u16string_view(reinterpret_cast<const char16_t*>(what.data()), what.size()), @@ -195,7 +195,7 @@ size_t SubstGlobal(TUtf16String& text, wchar16 what, wchar16 with, size_t from) size_t SubstGlobal(std::u16string& text, wchar16 what, wchar16 with, size_t from) { return SubstCharGlobalImpl(text, (char16_t)what, (char16_t)with, from); } - -size_t SubstGlobal(TUtf32String& text, wchar32 what, wchar32 with, size_t from) { + +size_t SubstGlobal(TUtf32String& text, wchar32 what, wchar32 with, size_t from) { return SubstCharGlobalImpl(text, (char32_t)what, (char32_t)with, from); -} +} diff --git a/util/string/subst.h b/util/string/subst.h index 45b622fbef..7288398515 100644 --- a/util/string/subst.h +++ b/util/string/subst.h @@ -17,7 +17,7 @@ size_t SubstGlobal(TString& text, TStringBuf what, TStringBuf with, size_t from size_t SubstGlobal(std::string& text, TStringBuf what, TStringBuf with, size_t from = 0); size_t SubstGlobal(TUtf16String& text, TWtringBuf what, TWtringBuf with, size_t from = 0); size_t SubstGlobal(std::u16string& text, TWtringBuf what, TWtringBuf with, size_t from = 0); -size_t SubstGlobal(TUtf32String& text, TUtf32StringBuf what, TUtf32StringBuf with, size_t from = 0); +size_t SubstGlobal(TUtf32String& text, TUtf32StringBuf what, TUtf32StringBuf with, size_t from = 0); /* Replace all occurences of character `what` with character `with` starting from position `from`. * @@ -32,7 +32,7 @@ size_t SubstGlobal(TString& text, char what, char with, size_t from = 0); size_t SubstGlobal(std::string& text, char what, char with, size_t from = 0); size_t SubstGlobal(TUtf16String& text, wchar16 what, wchar16 with, size_t from = 0); size_t SubstGlobal(std::u16string& text, wchar16 what, wchar16 with, size_t from = 0); -size_t SubstGlobal(TUtf32String& text, wchar32 what, wchar32 with, size_t from = 0); +size_t SubstGlobal(TUtf32String& text, wchar32 what, wchar32 with, size_t from = 0); // TODO(yazevnul): // - rename `SubstGlobal` to `ReplaceAll` for convenience diff --git a/util/string/subst_ut.cpp b/util/string/subst_ut.cpp index 21eccef779..0c0e53fddb 100644 --- a/util/string/subst_ut.cpp +++ b/util/string/subst_ut.cpp @@ -2,7 +2,7 @@ #include "subst.h" #include <string> -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> Y_UNIT_TEST_SUITE(TStringSubst) { static const size_t MIN_FROM_CTX = 4; diff --git a/util/string/type.cpp b/util/string/type.cpp index 49671c02c2..d798a7f03a 100644 --- a/util/string/type.cpp +++ b/util/string/type.cpp @@ -73,7 +73,7 @@ bool IsTrue(const TStringBuf v) noexcept { return IsCaseInsensitiveAnyOf(v, trueOptions); } -bool IsFalse(const TStringBuf v) noexcept { +bool IsFalse(const TStringBuf v) noexcept { static constexpr std::array<TStringBuf, 7> falseOptions{ "false", "f", diff --git a/util/string/type.h b/util/string/type.h index d6cb29ea58..4d6b52643f 100644 --- a/util/string/type.h +++ b/util/string/type.h @@ -11,12 +11,12 @@ Y_PURE_FUNCTION static inline bool IsSpace(const TStringBuf s) noexcept { /// Returns "true" if the given string is an arabic number ([0-9]+) Y_PURE_FUNCTION bool IsNumber(const TStringBuf s) noexcept; - + Y_PURE_FUNCTION bool IsNumber(const TWtringBuf s) noexcept; /// Returns "true" if the given string is a hex number ([0-9a-fA-F]+) Y_PURE_FUNCTION bool IsHexNumber(const TStringBuf s) noexcept; - + Y_PURE_FUNCTION bool IsHexNumber(const TWtringBuf s) noexcept; /* Tests if the given string is case insensitive equal to one of: diff --git a/util/string/type_ut.cpp b/util/string/type_ut.cpp index 03e7af62bd..a8e723e404 100644 --- a/util/string/type_ut.cpp +++ b/util/string/type_ut.cpp @@ -1,6 +1,6 @@ #include "type.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <util/charset/wide.h> diff --git a/util/string/util_ut.cpp b/util/string/util_ut.cpp index 18a2d8e195..14aaa86bd5 100644 --- a/util/string/util_ut.cpp +++ b/util/string/util_ut.cpp @@ -1,6 +1,6 @@ #include "util.h" -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> class TStrUtilTest: public TTestBase { UNIT_TEST_SUITE(TStrUtilTest); diff --git a/util/string/vector_ut.cpp b/util/string/vector_ut.cpp index 817120f268..9b0016542e 100644 --- a/util/string/vector_ut.cpp +++ b/util/string/vector_ut.cpp @@ -1,4 +1,4 @@ -#include <library/cpp/testing/unittest/registar.h> +#include <library/cpp/testing/unittest/registar.h> #include <util/charset/wide.h> #include "cast.h" |