Lines Matching full:wc
92 int (*escout)(FILE *out, int cols, int wc)) in crunch_str() argument
96 unsigned wc; in crunch_str() local
99 if ((bytes = utf8towc(&wc, end, 4))>0 && (col = wcwidth(wc))>=0) { in crunch_str()
100 if (!escmore || wc>255 || !strchr(escmore, wc)) { in crunch_str()
110 wc = *end; in crunch_str()
115 if ((col = escout(out, col, wc))<0) break; in crunch_str()
125 int crunch_escape(FILE *out, int cols, int wc) in crunch_escape() argument
130 if (wc<' ') rc = sprintf(buf, "^%c", '@'+wc); in crunch_escape()
131 else if (wc<256) rc = sprintf(buf, "<%02X>", wc); in crunch_escape()
132 else rc = sprintf(buf, "U+%04X", wc); in crunch_escape()
141 int crunch_rev_escape(FILE *out, int cols, int wc) in crunch_rev_escape() argument
146 rc = crunch_escape(out, cols, wc); in crunch_rev_escape()
178 int (*escout)(FILE *out, int cols, int wc)) in draw_trim_esc() argument