Lines Matching refs:wc
7 int (*escout)(FILE *out, int cols, int wc)) in crunch_str() argument
11 unsigned wc; in crunch_str() local
14 if ((bytes = utf8towc(&wc, end, 4))>0 && (col = wcwidth(wc))>=0) { in crunch_str()
15 if (!escmore || wc>255 || !strchr(escmore, wc)) { in crunch_str()
25 wc = *end; in crunch_str()
30 if ((col = escout(out, col, wc))<0) break; in crunch_str()
40 int crunch_escape(FILE *out, int cols, int wc) in crunch_escape() argument
45 if (wc<' ') rc = sprintf(buf, "^%c", '@'+wc); in crunch_escape()
46 else if (wc<256) rc = sprintf(buf, "<%02X>", wc); in crunch_escape()
47 else rc = sprintf(buf, "U+%04X", wc); in crunch_escape()
56 int crunch_rev_escape(FILE *out, int cols, int wc) in crunch_rev_escape() argument
61 rc = crunch_escape(out, cols, wc); in crunch_rev_escape()
93 int (*escout)(FILE *out, int cols, int wc)) in draw_trim_esc() argument