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

Method AddChangesetTag

libs/editor/changeset_wrapper.cpp:255–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void ChangesetWrapper::AddChangesetTag(std::string key, std::string value)
256{
257 // Truncate to 254 characters as OSM has a length limit of 255
258 if (strings::Truncate(value, kMaximumOsmChars))
259 value += "…";
260
261 value = strings::EscapeForXML(value);
262
263 m_changesetComments.insert_or_assign(std::move(key), std::move(value));
264}
265
266void ChangesetWrapper::AddToChangesetKeyList(std::string key, std::string value)
267{

Callers 2

UploadChangesMethod · 0.80
UpdateXMLFeatureTagsMethod · 0.80

Calls 3

TruncateFunction · 0.85
EscapeForXMLFunction · 0.85
insert_or_assignMethod · 0.45

Tested by

no test coverage detected