Collapse all gaps, return past-the-end pointer
| 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) |
no test coverage detected