MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / replace_last

Function replace_last

subprojects/llama.cpp/common/console.cpp:354–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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]);

Callers 3

readline_advancedFunction · 0.85
draw_next_frameFunction · 0.85
stopFunction · 0.85

Calls 2

pop_cursorFunction · 0.85
put_codepointFunction · 0.85

Tested by

no test coverage detected