Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2016-05-11 16:30:41 +0300
committerMaxim Pimenov <m@maps.me>2016-05-13 16:22:00 +0300
commit2aff3ad66f824748d918a0721569b80e3fd2f80e (patch)
tree33a40a656606e3432a8ced2c487d8807d0f54b4e /indexer/categories_holder.hpp
parentcd14b31192a4f24dd3568883375b9c3325b88abf (diff)
[indexer] Fix tests for unique new feature category names.
Diffstat (limited to 'indexer/categories_holder.hpp')
-rw-r--r--indexer/categories_holder.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/indexer/categories_holder.hpp b/indexer/categories_holder.hpp
index 2677a7e718..14e7f97053 100644
--- a/indexer/categories_holder.hpp
+++ b/indexer/categories_holder.hpp
@@ -35,6 +35,12 @@ public:
}
};
+ struct Mapping
+ {
+ char const * m_name;
+ int8_t m_code;
+ };
+
private:
typedef strings::UniString StringT;
typedef multimap<uint32_t, shared_ptr<Category> > Type2CategoryContT;
@@ -45,8 +51,9 @@ private:
Name2CatContT m_name2type;
public:
- static size_t const kNumLanguages;
- static size_t const kEnglishCode;
+ static int8_t const kEnglishCode;
+ static int8_t const kUnsupportedLocaleCode;
+ static vector<Mapping> const kLocaleMapping;
explicit CategoriesHolder(unique_ptr<Reader> && reader);
void LoadFromStream(istream & s);
@@ -114,7 +121,6 @@ public:
/// Converts any language locale from UI to internal integer code
static int8_t MapLocaleToInteger(string const & locale);
- static constexpr int8_t kUnsupportedLocaleCode = -1;
private:
void AddCategory(Category & cat, vector<uint32_t> & types);