MCPcopy Create free account
hub / github.com/JuliaStrings/utf8proc / utf8proc_charwidth

Function utf8proc_charwidth

utf8proc.c:431–433  ·  view source on GitHub ↗

return a character width analogous to wcwidth (except portable and hopefully less buggy than most system wcwidth functions). */

Source from the content-addressed store, hash-verified

429/* return a character width analogous to wcwidth (except portable and
430 hopefully less buggy than most system wcwidth functions). */
431UTF8PROC_DLLEXPORT int utf8proc_charwidth(utf8proc_int32_t c) {
432 return utf8proc_get_property(c)->charwidth;
433}
434
435UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_charwidth_ambiguous(utf8proc_int32_t c) {
436 return utf8proc_get_property(c)->ambiguous_width;

Callers 3

LLVMFuzzerTestOneInputFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

utf8proc_get_propertyFunction · 0.85

Tested by

no test coverage detected