Lines Matching refs:wc
87 int (*escout)(FILE *out, int cols, int wc)) in crunch_str() argument
93 wchar_t wc; in crunch_str() local
95 if ((bytes = mbrtowc(&wc, end, MB_CUR_MAX, 0))>0 && (col = wcwidth(wc))>=0) in crunch_str()
97 if (!escmore || wc>255 || !strchr(escmore, wc)) { in crunch_str()
107 wc = *end; in crunch_str()
111 if (escout) col = escout(out, col, wc); in crunch_str()
121 int crunch_escape(FILE *out, int cols, int wc) in crunch_escape() argument
126 if (wc<' ') rc = sprintf(buf, "^%c", '@'+wc); in crunch_escape()
127 else if (wc<256) rc = sprintf(buf, "<%02X>", wc); in crunch_escape()
128 else rc = sprintf(buf, "U+%04X", wc); in crunch_escape()
137 int crunch_rev_escape(FILE *out, int cols, int wc) in crunch_rev_escape() argument
142 rc = crunch_escape(out, cols, wc); in crunch_rev_escape()
174 int (*escout)(FILE *out, int cols, int wc)) in draw_trim_esc() argument