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

Function estimateWidth

common/console.cpp:236–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

readline_advancedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected