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

Method SetInputLocale

libs/search/processor.cpp:208–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void Processor::SetInputLocale(string const & locale)
209{
210 if (locale.empty())
211 return;
212
213 localisation::LanguageIndex const languageIndex = localisation::ConvertLanguageCodeToLanguageIndex(locale);
214 LOG(LDEBUG, ("New input locale:", locale, "; locale code:", int(languageIndex)));
215 m_keywordsScorer.SetLanguages(LanguageTier::LANGUAGE_TIER_CURRENT, localisation::SimilarLanguageIndexes(languageIndex));
216 m_inputLanguageIndex = CategoriesHolder::MapLocaleToInteger(locale);
217}
218
219void Processor::SetQuery(string const & query, bool categorialRequest /* = false */)
220{

Callers

nothing calls this directly

Calls 4

SimilarLanguageIndexesFunction · 0.85
emptyMethod · 0.45
SetLanguagesMethod · 0.45

Tested by

no test coverage detected