MCPcopy Create free account
hub / github.com/WheretIB/nullc / flush

Method flush

external/pugixml/pugixml.cpp:1435–1446  ·  view source on GitHub ↗

Collapse all gaps, return past-the-end pointer

Source from the content-addressed store, hash-verified

1433
1434 // Collapse all gaps, return past-the-end pointer
1435 char_t* flush(char_t* s)
1436 {
1437 if (end)
1438 {
1439 // Move [old_gap_end, current_pos) to [old_gap_start, ...)
1440 assert(s >= end);
1441 memmove(end - size, end, reinterpret_cast<char*>(s) - reinterpret_cast<char*>(end));
1442
1443 return s - size;
1444 }
1445 else return s;
1446 }
1447 };
1448
1449 char_t* strconv_escape(char_t* s, gap& g)

Callers 7

strconv_commentFunction · 0.45
strconv_cdataFunction · 0.45
parseMethod · 0.45
parse_wnormMethod · 0.45
parse_wconvMethod · 0.45
parse_eolMethod · 0.45
parse_simpleMethod · 0.45

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected