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

Function GetLocalizedSubtypes

libs/indexer/feature_utils.cpp:219–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217*/
218
219vector<string> GetLocalizedSubtypes(TypesHolder const & types)
220{
221 auto const & classificator = classif();
222 auto subtypes = ftypes::Subtypes::Instance();
223 vector<string> localizedSubtypes;
224 for (auto const & type : types)
225 if (subtypes.IsSubtype(type))
226 localizedSubtypes.push_back(localisation::TranslatedFeatureType(classificator.GetReadableObjectName(type)));
227 return localizedSubtypes;
228}
229
230vector<string> GetCuisines(TypesHolder const & types)
231{

Callers 1

FillDetailsFunction · 0.85

Calls 4

TranslatedFeatureTypeFunction · 0.85
IsSubtypeMethod · 0.80
GetReadableObjectNameMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected