MCPcopy Create free account
hub / github.com/WinMerge/winmerge / writeEmptyElement

Function writeEmptyElement

Src/InternalPlugins.cpp:924–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922}
923
924static void writeEmptyElement(XMLWriter& writer, const std::string& tagname, const std::string& attrname, const String& value)
925{
926 AttributesImpl attrs;
927 attrs.addAttribute("", "", attrname, "", ucr::toUTF8(value));
928 writer.emptyElement("", "", tagname, attrs);
929}
930
931static void writeMethodElement(XMLWriter& writer, const std::string& tagname, const Method& method)
932{

Callers 1

SaveToXMLFunction · 0.85

Calls 3

addAttributeMethod · 0.80
emptyElementMethod · 0.80
toUTF8Function · 0.50

Tested by

no test coverage detected