MCPcopy Create free account
hub / github.com/catboost/catboost / StartElement

Method StartElement

catboost/libs/helpers/xml_output.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void TXmlOutputContext::StartElement(TString localName) {
89 CheckIsValidXmlAsciiName(localName, "StartElement");
90
91 if (CurrentElementIsEmpty) {
92 (*Out) << ">\n";
93 Elements.push(std::move(CurrentElement));
94 }
95 (*Out) << '<' << localName;
96 CurrentElement = std::move(localName);
97 CurrentElementIsEmpty = true;
98}
99
100void TXmlOutputContext::EndElement() {
101 if (CurrentElementIsEmpty) {

Callers 1

Calls 3

CheckIsValidXmlAsciiNameFunction · 0.85
moveFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected