MCPcopy Create free account
hub / github.com/Tencent/rapidjson / WriteEndElement

Method WriteEndElement

example/jsonx/jsonx.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 }
161
162 bool WriteEndElement(const char* type) {
163 if (!WriteString("</json:") ||
164 !WriteString(type) ||
165 !WriteString(">"))
166 return false;
167
168 // For the last end tag, flush the output stream.
169 if (--level_ == 0)
170 os_.Flush();
171
172 return true;
173 }
174
175 bool WriteNumberElement(const char* buffer, int length) {
176 if (!WriteStartElement("number"))

Callers

nothing calls this directly

Calls 1

FlushMethod · 0.45

Tested by

no test coverage detected