| 836 | } |
| 837 | |
| 838 | string_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 | |
| 853 | uint8_t FeatureType::GetRank() |
| 854 | { |