| 99 | } |
| 100 | |
| 101 | bool 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 | |
| 113 | localisation::LanguageIndex StringUtf8Multilang::FindString(std::string const & utf8s) const |
| 114 | { |