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

Method LangStatisticsToString

generator/descriptions_section_builder.cpp:68–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68std::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
86void DescriptionsCollector::operator()(FeatureType & ft, uint32_t featureId)
87{

Callers 1

BuildSectionMethod · 0.80

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected