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

Function estimateWidth

subprojects/llama.cpp/common/console.cpp:284–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282 }
283
284 static int estimateWidth(char32_t codepoint) {
285#if defined(_WIN32)
286 (void)codepoint;
287 return 1;
288#else
289 return wcwidth(codepoint);
290#endif
291 }
292
293 static int put_codepoint(const char* utf8_codepoint, size_t length, int expectedWidth) {
294#if defined(_WIN32)

Callers 2

set_line_contentsFunction · 0.85
readline_advancedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected