MCPcopy Create free account
hub / github.com/audacity/audacity / StartTag

Method StartTag

libraries/lib-xml/XMLWriter.cpp:79–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void XMLWriter::StartTag(const wxString &name)
80// may throw
81{
82 int i;
83
84 if (mInTag) {
85 Write(wxT(">\n"));
86 mInTag = false;
87 }
88
89 for (i = 0; i < mDepth; i++) {
90 Write(wxT("\t"));
91 }
92
93 Write(wxString::Format(wxT("<%s"), name));
94
95 mTagstack.insert(mTagstack.begin(), name);
96 mHasKids[0] = true;
97 mHasKids.insert(mHasKids.begin(), false);
98 mDepth++;
99 mInTag = true;
100}
101
102void XMLWriter::EndTag(const wxString &name)
103// may throw

Callers 15

SaveXMLMethod · 0.45
WriteXMLMethod · 0.45
WriteXMLMethod · 0.45
WriteOneXMLMethod · 0.45
WriteXMLMethod · 0.45
WriteXMLMethod · 0.45
WriteXMLMethod · 0.45
WriteXMLMethod · 0.45
WriteXMLMethod · 0.45
WriteXMLMethod · 0.45
WriteXMLMethod · 0.45
WriteXMLMethod · 0.45

Calls 3

WriteFunction · 0.85
insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected