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

Function print_node

include/rapidxml/rapidxml_print.hpp:328–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 // Print node
327 template<class OutIt, class Ch>
328 inline OutIt print_node(OutIt out, const xml_node<Ch> *node, int flags, int indent)
329 {
330 // Print proper node type
331 switch (node->type())
332 {
333
334 // Document
335 case node_document:
336 out = print_children(out, node, flags, indent);
337 break;
338
339 // Element
340 case node_element:
341 out = print_element_node(out, node, flags, indent);
342 break;
343
344 // Data
345 case node_data:
346 out = print_data_node(out, node, flags, indent);
347 break;
348
349 // CDATA
350 case node_cdata:
351 out = print_cdata_node(out, node, flags, indent);
352 break;
353
354 // Declaration
355 case node_declaration:
356 out = print_declaration_node(out, node, flags, indent);
357 break;
358
359 // Comment
360 case node_comment:
361 out = print_comment_node(out, node, flags, indent);
362 break;
363
364 // Doctype
365 case node_doctype:
366 out = print_doctype_node(out, node, flags, indent);
367 break;
368
369 // Pi
370 case node_pi:
371 out = print_pi_node(out, node, flags, indent);
372 break;
373
374 // Unknown
375 default:
376 assert(0);
377 break;
378 }
379
380 // If indenting not disabled, add line break after node
381 if (!(flags & print_no_indenting))
382 *out = Ch('\n'), ++out;
383
384 // Return modified iterator
385 return out;

Callers 2

print_childrenFunction · 0.85
printFunction · 0.85

Calls 10

print_childrenFunction · 0.85
print_element_nodeFunction · 0.85
print_data_nodeFunction · 0.85
print_cdata_nodeFunction · 0.85
print_declaration_nodeFunction · 0.85
print_comment_nodeFunction · 0.85
print_doctype_nodeFunction · 0.85
print_pi_nodeFunction · 0.85
assertFunction · 0.85
typeMethod · 0.45

Tested by

no test coverage detected