diff options
author | dskor <dskor@yandex-team.ru> | 2022-02-10 16:50:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:39 +0300 |
commit | b98158d2a635e54968e0672157519bca671dc2ea (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/containers | |
parent | c08ffd39f8d501d97c1656f0ed2576aa04e47629 (diff) | |
download | ydb-b98158d2a635e54968e0672157519bca671dc2ea.tar.gz |
Restoring authorship annotation for <dskor@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers')
-rw-r--r-- | library/cpp/containers/comptrie/comptrie_impl.h | 12 | ||||
-rw-r--r-- | library/cpp/containers/comptrie/comptrie_ut.cpp | 38 | ||||
-rw-r--r-- | library/cpp/containers/comptrie/key_selector.h | 8 |
3 files changed, 29 insertions, 29 deletions
diff --git a/library/cpp/containers/comptrie/comptrie_impl.h b/library/cpp/containers/comptrie/comptrie_impl.h index 23cb31f5bb..f41c38311a 100644 --- a/library/cpp/containers/comptrie/comptrie_impl.h +++ b/library/cpp/containers/comptrie/comptrie_impl.h @@ -66,12 +66,12 @@ namespace NCompTriePrivate { struct TStringForChar<wchar16> { typedef TUtf16String TResult; }; - - template <> - struct TStringForChar<wchar32> { - typedef TUtf32String TResult; - }; - + + template <> + struct TStringForChar<wchar32> { + typedef TUtf32String TResult; + }; + } namespace NCompTriePrivate { diff --git a/library/cpp/containers/comptrie/comptrie_ut.cpp b/library/cpp/containers/comptrie/comptrie_ut.cpp index 829b9d57ce..74bee09b5d 100644 --- a/library/cpp/containers/comptrie/comptrie_ut.cpp +++ b/library/cpp/containers/comptrie/comptrie_ut.cpp @@ -95,14 +95,14 @@ private: UNIT_TEST(TestSearchIterChar); UNIT_TEST(TestSearchIterWchar); - UNIT_TEST(TestSearchIterWchar32) + UNIT_TEST(TestSearchIterWchar32) UNIT_TEST(TestCopyAndAssignment); UNIT_TEST(TestFirstSymbolIterator8); UNIT_TEST(TestFirstSymbolIterator16); UNIT_TEST(TestFirstSymbolIterator32); - UNIT_TEST(TestFirstSymbolIteratorChar32); + UNIT_TEST(TestFirstSymbolIteratorChar32); UNIT_TEST(TestArrayPacker); @@ -232,14 +232,14 @@ public: void TestSearchIterChar(); void TestSearchIterWchar(); - void TestSearchIterWchar32(); + void TestSearchIterWchar32(); void TestCopyAndAssignment(); void TestFirstSymbolIterator8(); void TestFirstSymbolIterator16(); void TestFirstSymbolIterator32(); - void TestFirstSymbolIteratorChar32(); + void TestFirstSymbolIteratorChar32(); void TestArrayPacker(); @@ -1307,13 +1307,13 @@ struct TConvertKey<wchar16> { } }; -template <> -struct TConvertKey<wchar32> { - static inline TUtf32String Convert(const TStringBuf& key) { - return TUtf32String::FromUtf8(key); - } -}; - +template <> +struct TConvertKey<wchar32> { + static inline TUtf32String Convert(const TStringBuf& key) { + return TUtf32String::FromUtf8(key); + } +}; + template <class TSearchIter, class TKeyBuf> static void MoveIter(TSearchIter& iter, const TKeyBuf& key) { for (size_t i = 0; i < key.length(); ++i) { @@ -1371,10 +1371,10 @@ void TCompactTrieTest::TestSearchIterWchar() { TestSearchIterImpl<wchar16>(); } -void TCompactTrieTest::TestSearchIterWchar32() { - TestSearchIterImpl<wchar32>(); -} - +void TCompactTrieTest::TestSearchIterWchar32() { + TestSearchIterImpl<wchar32>(); +} + void TCompactTrieTest::TestCopyAndAssignment() { TBufferOutput bufout; typedef TCompactTrie<> TTrie; @@ -1429,11 +1429,11 @@ void TCompactTrieTest::TestFirstSymbolIterator32() { TestFirstSymbolIterator<ui32>(); } -void TCompactTrieTest::TestFirstSymbolIteratorChar32() { - TestFirstSymbolIterator<wchar32>(); -} +void TCompactTrieTest::TestFirstSymbolIteratorChar32() { + TestFirstSymbolIterator<wchar32>(); +} + - void TCompactTrieTest::TestArrayPacker() { using TDataInt = std::array<int, 2>; const std::pair<TString, TDataInt> dataXxx{"xxx", {{15, 16}}}; diff --git a/library/cpp/containers/comptrie/key_selector.h b/library/cpp/containers/comptrie/key_selector.h index 9ad72ff836..60466cef71 100644 --- a/library/cpp/containers/comptrie/key_selector.h +++ b/library/cpp/containers/comptrie/key_selector.h @@ -23,7 +23,7 @@ struct TCompactTrieKeySelector<char>: public TCompactTrieCharKeySelector<char> { template <> struct TCompactTrieKeySelector<wchar16>: public TCompactTrieCharKeySelector<wchar16> { }; - -template <> -struct TCompactTrieKeySelector<wchar32>: public TCompactTrieCharKeySelector<wchar32> { -}; + +template <> +struct TCompactTrieKeySelector<wchar32>: public TCompactTrieCharKeySelector<wchar32> { +}; |