diff options
author | vng <viktor.govako@gmail.com> | 2016-02-18 17:37:51 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:21:26 +0300 |
commit | ef773229e2da03044e497234ab4a53f6ed1dcc13 (patch) | |
tree | 8c335a583657e6d348df1934eb0b0c5aa5572c1a /indexer/feature_impl.hpp | |
parent | 0cff2e4e4c1416021924a9624f4fcb3a354a0007 (diff) |
Factor out Rank <-> Population functions.
Diffstat (limited to 'indexer/feature_impl.hpp')
-rw-r--r-- | indexer/feature_impl.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indexer/feature_impl.hpp b/indexer/feature_impl.hpp index 4b24519de8..ea1ba79950 100644 --- a/indexer/feature_impl.hpp +++ b/indexer/feature_impl.hpp @@ -35,4 +35,7 @@ namespace feature bool IsHouseNumber(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); +} // namespace feature |