| 190 | } |
| 191 | |
| 192 | void DumpFeatureNames(string const & fPath, string const & lang) |
| 193 | { |
| 194 | localisation::LanguageIndex const languageIndex = localisation::ConvertLanguageCodeToLanguageIndex(lang); |
| 195 | |
| 196 | feature::ForEachFeature(fPath, [&](FeatureType & f, uint32_t) |
| 197 | { |
| 198 | f.ForEachName([&](localisation::LanguageIndex someLanguageIndex, std::string_view name) |
| 199 | { |
| 200 | CHECK(!name.empty(), ("Feature name is empty")); |
| 201 | |
| 202 | if (languageIndex == localisation::kUnsupportedLanguageIndex) |
| 203 | cout << localisation::ConvertLanguageIndexToLanguageCode(someLanguageIndex) << ' ' << name << endl; |
| 204 | else if (someLanguageIndex == languageIndex) |
| 205 | cout << name << endl; |
| 206 | }); |
| 207 | }); |
| 208 | } |
| 209 | } // namespace features_dumper |
no test coverage detected