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

Method CollectString

libs/kml/visitors.hpp:172–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171private:
172 void CollectString(LocalizableStringSubIndex & subIndex, int8_t code, std::string const & str)
173 {
174 if (str.empty())
175 {
176 subIndex.insert(std::make_pair(code, kEmptyStringId));
177 }
178 else
179 {
180 subIndex.insert(std::make_pair(code, m_counter));
181 m_counter++;
182 m_collection.push_back(str);
183 }
184 }
185
186 uint32_t m_counter = kEmptyStringId + 1;
187 std::vector<std::string> m_collection;

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
insertMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected