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

Method HasString

libs/i18n/string_utf8_multilang.cpp:101–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101bool StringUtf8Multilang::HasString(localisation::LanguageIndex const languageIndex) const
102{
103 if (!localisation::IsSupportedLanguageIndex(languageIndex))
104 return false;
105
106 for (size_t i = 0; i < m_s.size(); i = GetNextIndex(i))
107 if ((m_s[i] & kLangCodeMask) == languageIndex)
108 return true;
109
110 return false;
111}
112
113localisation::LanguageIndex StringUtf8Multilang::FindString(std::string const & utf8s) const
114{

Callers 2

PreSerializeMethod · 0.45
UNIT_TESTFunction · 0.45

Calls 2

IsSupportedLanguageIndexFunction · 0.85
sizeMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.36