| 352 | } |
| 353 | |
| 354 | static void replace_last(char ch) { |
| 355 | #if defined(_WIN32) |
| 356 | pop_cursor(); |
| 357 | put_codepoint(&ch, 1, 1); |
| 358 | #else |
| 359 | fprintf(out, "\b%c", ch); |
| 360 | #endif |
| 361 | } |
| 362 | |
| 363 | static char32_t decode_utf8(const std::string & input, size_t pos, size_t & advance) { |
| 364 | unsigned char c = static_cast<unsigned char>(input[pos]); |
no test coverage detected