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

Function my_isprint

test/charwidth.c:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10static int my_isprint(int c) {
11 int cat = utf8proc_get_property(c)->category;
12 return (UTF8PROC_CATEGORY_LU <= cat && cat <= UTF8PROC_CATEGORY_ZS) ||
13 (c == 0x0601 || c == 0x0602 || c == 0x0603 || c == 0x06dd || c == 0x00ad) ||
14 (cat == UTF8PROC_CATEGORY_CN) || (cat == UTF8PROC_CATEGORY_CO);
15}
16
17int main(int argc, char **argv)
18{

Callers 1

mainFunction · 0.85

Calls 1

utf8proc_get_propertyFunction · 0.85

Tested by

no test coverage detected