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

Method GetName

libs/indexer/feature.cpp:838–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836}
837
838string_view FeatureType::GetName(int8_t lang)
839{
840 if (!HasName())
841 return {};
842
843 ParseCommon();
844
845 // We don't store empty names. UPD: We do for coast features :)
846 string_view name;
847 if (m_params.name.GetString(lang, name))
848 ASSERT(!name.empty() || m_id.m_mwmId.GetInfo()->GetType() == MwmInfo::COASTS, ());
849
850 return name;
851}
852
853uint8_t FeatureType::GetRank()
854{

Callers 10

RegisterMethod · 0.45
GetFullObjectNameMethod · 0.45
GetFullObjectNamePathMethod · 0.45
operator()Method · 0.45
CuisinesMethod · 0.45
LoadMethod · 0.45
IsMatchedMethod · 0.45
operator()Method · 0.45
CollectNamesMethod · 0.45

Calls 6

HasNameFunction · 0.85
ASSERTFunction · 0.85
GetStringMethod · 0.45
emptyMethod · 0.45
GetTypeMethod · 0.45
GetInfoMethod · 0.45

Tested by 2

operator()Method · 0.36
CollectNamesMethod · 0.36