MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / node_output_comment

Function node_output_comment

Source/ThirdParty/pugixml/pugixml.cpp:3440–3463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3438 }
3439
3440 PUGI__FN void node_output_comment(xml_buffered_writer& writer, const char_t* s)
3441 {
3442 writer.write('<', '!', '-', '-');
3443
3444 while (*s)
3445 {
3446 const char_t* prev = s;
3447
3448 // look for -\0 or -- sequence - we can't output it since -- is illegal in comment body
3449 while (*s && !(s[0] == '-' && (s[1] == '-' || s[1] == 0))) ++s;
3450
3451 writer.write_buffer(prev, static_cast<size_t>(s - prev));
3452
3453 if (*s)
3454 {
3455 assert(*s == '-');
3456
3457 writer.write('-', ' ');
3458 ++s;
3459 }
3460 }
3461
3462 writer.write('-', '-', '>');
3463 }
3464
3465 PUGI__FN void node_output_pi_value(xml_buffered_writer& writer, const char_t* s)
3466 {

Callers 1

node_output_simpleFunction · 0.85

Calls 2

write_bufferMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected