From b98158d2a635e54968e0672157519bca671dc2ea Mon Sep 17 00:00:00 2001 From: dskor Date: Thu, 10 Feb 2022 16:50:39 +0300 Subject: Restoring authorship annotation for . Commit 2 of 2. --- library/cpp/containers/comptrie/comptrie_impl.h | 12 ++++---- library/cpp/containers/comptrie/comptrie_ut.cpp | 38 ++++++++++++------------- library/cpp/containers/comptrie/key_selector.h | 8 +++--- 3 files changed, 29 insertions(+), 29 deletions(-) (limited to 'library/cpp') diff --git a/library/cpp/containers/comptrie/comptrie_impl.h b/library/cpp/containers/comptrie/comptrie_impl.h index 23cb31f5bb4..f41c38311a4 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 { typedef TUtf16String TResult; }; - - template <> - struct TStringForChar { - typedef TUtf32String TResult; - }; - + + template <> + struct TStringForChar { + typedef TUtf32String TResult; + }; + } namespace NCompTriePrivate { diff --git a/library/cpp/containers/comptrie/comptrie_ut.cpp b/library/cpp/containers/comptrie/comptrie_ut.cpp index 829b9d57ce4..74bee09b5d6 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 { } }; -template <> -struct TConvertKey { - static inline TUtf32String Convert(const TStringBuf& key) { - return TUtf32String::FromUtf8(key); - } -}; - +template <> +struct TConvertKey { + static inline TUtf32String Convert(const TStringBuf& key) { + return TUtf32String::FromUtf8(key); + } +}; + template 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(); } -void TCompactTrieTest::TestSearchIterWchar32() { - TestSearchIterImpl(); -} - +void TCompactTrieTest::TestSearchIterWchar32() { + TestSearchIterImpl(); +} + void TCompactTrieTest::TestCopyAndAssignment() { TBufferOutput bufout; typedef TCompactTrie<> TTrie; @@ -1429,11 +1429,11 @@ void TCompactTrieTest::TestFirstSymbolIterator32() { TestFirstSymbolIterator(); } -void TCompactTrieTest::TestFirstSymbolIteratorChar32() { - TestFirstSymbolIterator(); -} +void TCompactTrieTest::TestFirstSymbolIteratorChar32() { + TestFirstSymbolIterator(); +} + - void TCompactTrieTest::TestArrayPacker() { using TDataInt = std::array; const std::pair dataXxx{"xxx", {{15, 16}}}; diff --git a/library/cpp/containers/comptrie/key_selector.h b/library/cpp/containers/comptrie/key_selector.h index 9ad72ff836c..60466cef715 100644 --- a/library/cpp/containers/comptrie/key_selector.h +++ b/library/cpp/containers/comptrie/key_selector.h @@ -23,7 +23,7 @@ struct TCompactTrieKeySelector: public TCompactTrieCharKeySelector { template <> struct TCompactTrieKeySelector: public TCompactTrieCharKeySelector { }; - -template <> -struct TCompactTrieKeySelector: public TCompactTrieCharKeySelector { -}; + +template <> +struct TCompactTrieKeySelector: public TCompactTrieCharKeySelector { +}; -- cgit v1.3