MCPcopy Create free account
hub / github.com/cinder/Cinder / print_comment_node

Function print_comment_node

include/rapidxml/rapidxml_print.hpp:271–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269 // Print comment node
270 template<class OutIt, class Ch>
271 inline OutIt print_comment_node(OutIt out, const xml_node<Ch> *node, int flags, int indent)
272 {
273 assert(node->type() == node_comment);
274 if (!(flags & print_no_indenting))
275 out = fill_chars(out, indent, Ch('\t'));
276 *out = Ch('<'), ++out;
277 *out = Ch('!'), ++out;
278 *out = Ch('-'), ++out;
279 *out = Ch('-'), ++out;
280 out = copy_chars(node->value(), node->value() + node->value_size(), out);
281 *out = Ch('-'), ++out;
282 *out = Ch('-'), ++out;
283 *out = Ch('>'), ++out;
284 return out;
285 }
286
287 // Print doctype node
288 template<class OutIt, class Ch>

Callers 1

print_nodeFunction · 0.85

Calls 6

assertFunction · 0.85
fill_charsFunction · 0.85
copy_charsFunction · 0.85
value_sizeMethod · 0.80
typeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected