Collapse all gaps, return past-the-end pointer
| 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 | |
| 1811 | PUGI__FN char_t* strconv_escape(char_t* s, gap& g) |
no outgoing calls
no test coverage detected