MCPcopy Create free account
hub / github.com/MyGUI/mygui / flush

Method flush

Tools/EditorFramework/pugixml.cpp:1796–1808  ·  view source on GitHub ↗

Collapse all gaps, return past-the-end pointer

Source from the content-addressed store, hash-verified

1794
1795 // Collapse all gaps, return past-the-end pointer
1796 char_t* flush(char_t* s)
1797 {
1798 if (end)
1799 {
1800 // Move [old_gap_end, current_pos) to [old_gap_start, ...)
1801 assert(s >= end);
1802 memmove(end - size, end, reinterpret_cast<char*>(s) - reinterpret_cast<char*>(end));
1803
1804 return s - size;
1805 }
1806 else
1807 return s;
1808 }
1809};
1810
1811PUGI__FN 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

no outgoing calls

Tested by

no test coverage detected