| 66 | } |
| 67 | |
| 68 | std::string DescriptionsCollectionBuilderStat::LangStatisticsToString() const |
| 69 | { |
| 70 | std::stringstream stream; |
| 71 | stream << "Language statistics - "; |
| 72 | if (m_langsStat.empty()) |
| 73 | stream << "(empty)"; |
| 74 | |
| 75 | for (size_t code = 0; code < m_langsStat.size(); ++code) |
| 76 | { |
| 77 | if (m_langsStat[code] == 0) |
| 78 | continue; |
| 79 | |
| 80 | stream << localisation::ConvertLanguageIndexToLanguageCode(static_cast<int8_t>(code)) << ":" << m_langsStat[code] << " "; |
| 81 | } |
| 82 | |
| 83 | return stream.str(); |
| 84 | } |
| 85 | |
| 86 | void DescriptionsCollector::operator()(FeatureType & ft, uint32_t featureId) |
| 87 | { |
no test coverage detected