Home
last modified time | relevance | path

Searched refs:GetShard (Results 1 – 3 of 3) sorted by relevance

/external/libtextclassifier/native/utils/grammar/utils/
Dlocale-shard-map_test.cc60 EXPECT_EQ(locale_shard_map.GetShard("ar-EG,bn-BD,cs-CZ"), 0); in TEST()
61 EXPECT_EQ(locale_shard_map.GetShard("bn-BD,cs-CZ,ar-EG"), 0); in TEST()
62 EXPECT_EQ(locale_shard_map.GetShard("bn-BD,ar-EG,cs-CZ"), 0); in TEST()
63 EXPECT_EQ(locale_shard_map.GetShard("ar-EG,cs-CZ,bn-BD"), 0); in TEST()
Dlocale-shard-map.cc66 int LocaleShardMap::GetShard(const std::vector<Locale> locales) const { in GetShard() function in libtextclassifier3::grammar::LocaleShardMap
75 int LocaleShardMap::GetShard(const std::string& locale_tags) const { in GetShard() function in libtextclassifier3::grammar::LocaleShardMap
77 return GetShard(locale_list); in GetShard()
Dlocale-shard-map.h41 int GetShard(const std::vector<Locale> locales) const;
42 int GetShard(const std::string& locale_tags) const;