MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / addSource

Function addSource

test/symbol_set_t.cpp:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89void addSource(TranslationEntries& entries, const QString& context, const QString& source, const QString& comment)
90{
91 // Comment must be unique. It is used to match translations.
92 auto found = std::find_if(begin(entries), end(entries), [&context, &comment](auto& entry) {
93 return entry.context == context && entry.comment == comment;
94 });
95 QVERIFY(found == end(entries));
96 entries.push_back({context, source, comment});
97}
98
99void processTranslation(const Map& map, TranslationEntries& translation_entries)
100{

Callers 1

processTranslationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected