Lines Matching refs:wc
92 int (*escout)(FILE *out, int cols, int wc)) in crunch_str() argument
98 wchar_t wc; in crunch_str() local
100 if ((bytes = utf8towc(&wc, end, 4))>0 && (col = wcwidth(wc))>=0) { in crunch_str()
101 if (!escmore || wc>255 || !strchr(escmore, wc)) { in crunch_str()
111 wc = *end; in crunch_str()
116 if ((col = escout(out, col, wc))<0) break; in crunch_str()
126 int crunch_escape(FILE *out, int cols, int wc) in crunch_escape() argument
131 if (wc<' ') rc = sprintf(buf, "^%c", '@'+wc); in crunch_escape()
132 else if (wc<256) rc = sprintf(buf, "<%02X>", wc); in crunch_escape()
133 else rc = sprintf(buf, "U+%04X", wc); in crunch_escape()
142 int crunch_rev_escape(FILE *out, int cols, int wc) in crunch_rev_escape() argument
147 rc = crunch_escape(out, cols, wc); in crunch_rev_escape()
179 int (*escout)(FILE *out, int cols, int wc)) in draw_trim_esc() argument