| 111 | } |
| 112 | |
| 113 | localisation::LanguageIndex StringUtf8Multilang::FindString(std::string const & utf8s) const |
| 114 | { |
| 115 | localisation::LanguageIndex result = localisation::kUnsupportedLanguageIndex; |
| 116 | |
| 117 | ForEach([&utf8s, &result](localisation::LanguageIndex const languageIndex, std::string_view name) |
| 118 | { |
| 119 | if (name == utf8s) |
| 120 | { |
| 121 | result = languageIndex; |
| 122 | return base::ControlFlow::Break; |
| 123 | } |
| 124 | return base::ControlFlow::Continue; |
| 125 | }); |
| 126 | |
| 127 | return result; |
| 128 | } |
| 129 | |
| 130 | size_t StringUtf8Multilang::CountLangs() const |
| 131 | { |
no test coverage detected