Lines Matching refs:c
102 #define iscgraph(c) isgraph_l(c, LC_C_LOCALE) argument
105 #define iscgraph(c) isgraph(c) argument
109 iscgraph(int c) { in iscgraph() argument
114 rv = isgraph(c); in iscgraph()
122 #define ISGRAPH(flags, c) \ argument
123 (((flags) & VIS_NOLOCALE) ? iscgraph(c) : iswgraph(c))
125 #define iswoctal(c) (((u_char)(c)) >= L'0' && ((u_char)(c)) <= L'7') argument
126 #define iswwhite(c) (c == L' ' || c == L'\t' || c == L'\n') argument
127 #define iswsafe(c) (c == L'\b' || c == BELL || c == L'\r') argument
128 #define xtoa(c) L"0123456789abcdef"[c] argument
129 #define XTOA(c) L"0123456789ABCDEF"[c] argument
166 do_hvis(wchar_t *dst, wint_t c, int flags, wint_t nextc, const wchar_t *extra) in do_hvis() argument
168 if (iswalnum(c) in do_hvis()
170 || c == L'$' || c == L'-' || c == L'_' || c == L'.' || c == L'+' in do_hvis()
172 || c == L'!' || c == L'*' || c == L'\'' || c == L'(' || c == L')' in do_hvis()
173 || c == L',') in do_hvis()
174 dst = do_svis(dst, c, flags, nextc, extra); in do_hvis()
177 *dst++ = xtoa(((unsigned int)c >> 4) & 0xf); in do_hvis()
178 *dst++ = xtoa((unsigned int)c & 0xf); in do_hvis()
189 do_mvis(wchar_t *dst, wint_t c, int flags, wint_t nextc, const wchar_t *extra) in do_mvis() argument
191 if ((c != L'\n') && in do_mvis()
193 ((iswspace(c) && (nextc == L'\r' || nextc == L'\n')) || in do_mvis()
195 (!iswspace(c) && (c < 33 || (c > 60 && c < 62) || c > 126)) || in do_mvis()
197 wcschr(L"#$@[\\]^`{|}~", c) != NULL)) { in do_mvis()
199 *dst++ = XTOA(((unsigned int)c >> 4) & 0xf); in do_mvis()
200 *dst++ = XTOA((unsigned int)c & 0xf); in do_mvis()
202 dst = do_svis(dst, c, flags, nextc, extra); in do_mvis()
210 do_mbyte(wchar_t *dst, wint_t c, int flags, wint_t nextc, int iswextra) in do_mbyte() argument
213 switch (c) { in do_mbyte()
261 if (ISGRAPH(flags, c) && !iswoctal(c)) { in do_mbyte()
263 *dst++ = c; in do_mbyte()
268 if (iswextra || ((c & 0177) == L' ') || (flags & VIS_OCTAL)) { in do_mbyte()
270 *dst++ = (u_char)(((u_int32_t)(u_char)c >> 6) & 03) + L'0'; in do_mbyte()
271 *dst++ = (u_char)(((u_int32_t)(u_char)c >> 3) & 07) + L'0'; in do_mbyte()
272 *dst++ = (c & 07) + L'0'; in do_mbyte()
277 if (c & 0200) { in do_mbyte()
278 c &= 0177; in do_mbyte()
282 if (iswcntrl(c)) { in do_mbyte()
284 if (c == 0177) in do_mbyte()
287 *dst++ = c + L'@'; in do_mbyte()
290 *dst++ = c; in do_mbyte()
307 do_svis(wchar_t *dst, wint_t c, int flags, wint_t nextc, const wchar_t *extra) in do_svis() argument
312 iswextra = wcschr(extra, c) != NULL; in do_svis()
313 if (!iswextra && (ISGRAPH(flags, c) || iswwhite(c) || in do_svis()
314 ((flags & VIS_SAFE) && iswsafe(c)))) { in do_svis()
315 *dst++ = c; in do_svis()
325 if ((c & wmsk) || i == 0) in do_svis()
327 (uint64_t)(c & bmsk) >> shft), in do_svis()
405 wint_t c; in istrsenvisx() local
556 c = *src++; in istrsenvisx()
557 dst = (*f)(dst, c, flags, len >= 1 ? *src : L'\0', extra); in istrsenvisx()
702 svis(char *mbdst, int c, int flags, int nextc, const char *mbextra) in svis() argument
707 cc[0] = c; in svis()
717 snvis(char *mbdst, size_t dlen, int c, int flags, int nextc, const char *mbextra) in snvis() argument
722 cc[0] = c; in snvis()
769 vis(char *mbdst, int c, int flags, int nextc) in vis() argument
774 cc[0] = c; in vis()
784 nvis(char *mbdst, size_t dlen, int c, int flags, int nextc) in nvis() argument
789 cc[0] = c; in nvis()