From 0be9e91f57f8934266d741b377773deb09521b6f Mon Sep 17 00:00:00 2001 From: tatiana-yan Date: Thu, 7 May 2020 12:44:11 +0300 Subject: [PATCH] [indexer] feature_impl.hpp clang-format. --- indexer/feature_impl.hpp | 42 ++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/indexer/feature_impl.hpp b/indexer/feature_impl.hpp index ff67155e9f..973239d5a2 100644 --- a/indexer/feature_impl.hpp +++ b/indexer/feature_impl.hpp @@ -10,31 +10,31 @@ namespace strings { class UniString; } namespace feature { - static int const g_arrWorldScales[] = { 3, 5, 7, 9 }; // 9 = scales::GetUpperWorldScale() - static int const g_arrCountryScales[] = { 10, 12, 14, 17 }; // 17 = scales::GetUpperScale() +static int const g_arrWorldScales[] = {3, 5, 7, 9}; // 9 = scales::GetUpperWorldScale() +static int const g_arrCountryScales[] = {10, 12, 14, 17}; // 17 = scales::GetUpperScale() - inline std::string GetTagForIndex(char const * prefix, size_t ind) - { - std::string str; - str.reserve(strlen(prefix) + 1); - str = prefix; +inline std::string GetTagForIndex(char const * prefix, size_t ind) +{ + std::string str; + str.reserve(strlen(prefix) + 1); + str = prefix; - static char const arrChar[] = { '0', '1', '2', '3' }; - static_assert(ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrWorldScales), ""); - static_assert(ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrCountryScales), ""); - ASSERT(ind >= 0 && ind < ARRAY_SIZE(arrChar), (ind)); + static char const arrChar[] = {'0', '1', '2', '3'}; + static_assert(ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrWorldScales), ""); + static_assert(ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrCountryScales), ""); + ASSERT(ind >= 0 && ind < ARRAY_SIZE(arrChar), (ind)); - str += arrChar[ind]; - return str; - } + str += arrChar[ind]; + return str; +} - bool IsDigit(int c); - bool IsNumber(strings::UniString const & s); +bool IsDigit(int c); +bool IsNumber(strings::UniString const & s); - bool IsHouseNumber(std::string const & s); - bool IsHouseNumber(strings::UniString const & s); - bool IsHouseNumberDeepCheck(strings::UniString const & s); +bool IsHouseNumber(std::string const & s); +bool IsHouseNumber(strings::UniString const & s); +bool IsHouseNumberDeepCheck(strings::UniString const & s); - uint8_t PopulationToRank(uint64_t p); - uint64_t RankToPopulation(uint8_t r); +uint8_t PopulationToRank(uint64_t p); +uint64_t RankToPopulation(uint8_t r); } // namespace feature