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

Function GetMapLanguageIndexes

libs/i18n/localisation.cpp:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143vector<LanguageIndex> GetMapLanguageIndexes()
144{
145 vector<LanguageIndex> languageIndexes = GetSimplifiedSystemLanguageIndexes();
146 optional<LanguageCode> const customMapLanguageCode = GetCustomMapLanguageCode();
147 if (customMapLanguageCode.has_value())
148 languageIndexes.insert(languageIndexes.begin(), ConvertLanguageCodeToLanguageIndex(customMapLanguageCode.value()));
149 if (UsedAlternativeMapLanguageHandling() == AlternativeMapLanguageHandling::IgnoreAlternatives)
150 {
151 vector<LanguageIndex> noAlternativeLanguageIndexes;
152 noAlternativeLanguageIndexes.push_back(languageIndexes.front());
153 return noAlternativeLanguageIndexes;
154 }
155 return languageIndexes;
156}
157
158LanguageIndex GetMapLanguageIndex()
159{

Callers 4

BestTranslationFunction · 0.85
GetMapLanguageIndexFunction · 0.85
GetPreferredBookmarkStrFunction · 0.85

Calls 10

GetCustomMapLanguageCodeFunction · 0.85
has_valueMethod · 0.80
frontMethod · 0.80
insertMethod · 0.45
beginMethod · 0.45
valueMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected