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

Function GetMapLanguageCodes

libs/i18n/localisation.cpp:123–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123vector<LanguageCode> GetMapLanguageCodes()
124{
125 vector<LanguageCode> languageCodes = GetSimplifiedSystemLanguageCodes();
126 optional<LanguageCode> const customMapLanguageCode = GetCustomMapLanguageCode();
127 if (customMapLanguageCode.has_value())
128 languageCodes.insert(languageCodes.begin(), customMapLanguageCode.value());
129 if (UsedAlternativeMapLanguageHandling() == AlternativeMapLanguageHandling::IgnoreAlternatives)
130 {
131 vector<LanguageCode> noAlternativeLanguageCodes;
132 noAlternativeLanguageCodes.push_back(languageCodes.front());
133 return noAlternativeLanguageCodes;
134 }
135 return languageCodes;
136}
137
138LanguageCode GetMapLanguageCode()
139{

Callers 1

GetMapLanguageCodeFunction · 0.85

Calls 9

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