MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / estimateWidth

Function estimateWidth

smallthinker/common/console.cpp:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 }
238
239 static int estimateWidth(char32_t codepoint) {
240#if defined(_WIN32)
241 (void)codepoint;
242 return 1;
243#else
244 return wcwidth(codepoint);
245#endif
246 }
247
248 static int put_codepoint(const char* utf8_codepoint, size_t length, int expectedWidth) {
249#if defined(_WIN32)

Callers 1

readline_advancedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected