MCPcopy Create free account
hub / github.com/comaps/comaps / SetLanguages

Method SetLanguages

libs/indexer/feature_meta.cpp:228–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void RegionData::SetLanguages(vector<localisation::LanguageIndex> const & languageIndexes)
229{
230 string value;
231 for (localisation::LanguageIndex const & languageIndex : languageIndexes)
232 {
233 if (languageIndex != localisation::kUnsupportedLanguageIndex)
234 value.push_back(languageIndex);
235 }
236 MetadataBase::Set(RegionData::Type::RD_LANGUAGES, value);
237}
238
239void RegionData::SetLanguages(vector<localisation::LanguageCode> const & languageCodes)
240{

Callers 4

ReadRegionDataImplFunction · 0.45
WriteRegionDataForTestsFunction · 0.45
GetLanguagesMethod · 0.45
UNIT_TESTFunction · 0.45

Calls 3

SetFunction · 0.50
push_backMethod · 0.45

Tested by 2

WriteRegionDataForTestsFunction · 0.36
UNIT_TESTFunction · 0.36