Home
last modified time | relevance | path

Searched refs:wc (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/lib/libc/port/locale/
H A Dnextwctype.c55 wc++; in nextwctype_l()
58 return (wc); in nextwctype_l()
59 wc++; in nextwctype_l()
61 wc--; in nextwctype_l()
72 if (re->__min <= wc && wc <= re->__max) in nextwctype_l()
82 wc++; in nextwctype_l()
83 if (re->__min <= wc && wc <= re->__max) { in nextwctype_l()
85 for (; wc <= re->__max; wc++) in nextwctype_l()
89 return (wc); in nextwctype_l()
94 for (; wc <= re->__max; wc++) in nextwctype_l()
[all …]
H A Dtowlower.c78 return (iswascii(wc) ? __trans_lower[wc] : in towlower_l()
79 (wc < 0 || wc >= _CACHED_RUNES) ? in towlower_l()
80 change_case_ext(loc, wc, 1) : in towlower_l()
86 towlower(wint_t wc) in towlower() argument
88 return (iswascii(wc) ? __trans_lower[wc] : in towlower()
89 (wc < 0 || wc >= _CACHED_RUNES) ? in towlower()
97 return (iswascii(wc) ? __trans_upper[wc] : in towupper_l()
98 (wc < 0 || wc >= _CACHED_RUNES) ? in towupper_l()
105 towupper(wint_t wc) in towupper() argument
107 return (iswascii(wc) ? __trans_upper[wc] : in towupper()
[all …]
H A Diswctype.c83 if (iswascii(wc)) in iswctype_l()
97 if (iswascii(wc)) in iswctype()
99 return (__istype(wc, class)); in iswctype()
109 if (iswascii(wc)) in _iswctype()
118 return (iswascii(wc) ? \
124 isw##type(wint_t wc) \
126 return (iswascii(wc) ? \
128 __istype(wc, mask)); \
180 __iswrune(wint_t wc) in DEFN_ISWTYPE()
190 return (wc == 0 ? 0 : iswascii(wc) ? 1 : __istype(wc, 0xffffffffU)); in DEFN_ISWTYPE()
[all …]
H A Dfputwc.c70 if (wc == WEOF) in __fputwc_impl()
73 if (MB_CUR_MAX == 1 && wc > 0 && wc <= UCHAR_MAX) { in __fputwc_impl()
77 *buf = (unsigned char)wc; in __fputwc_impl()
107 return ((wint_t)wc); in __fputwc_impl()
111 fputwc(wchar_t wc, FILE *fp) in fputwc() argument
113 return (__fputwc_impl(wc, fp, 0)); in fputwc()
121 putwc(wchar_t wc, FILE *fp) in putwc() argument
123 return (__fputwc_impl(wc, fp, 0)); in putwc()
127 __fputwc_xpg5(wint_t wc, FILE *fp) in __fputwc_xpg5() argument
129 return (__fputwc_impl(wc, fp, 1)); in __fputwc_xpg5()
[all …]
H A Dmskanji.c85 wchar_t wc; in _MSKanji_mbrtowc() local
112 *pwc = wc; in _MSKanji_mbrtowc()
116 wc = *s++ & 0xff; in _MSKanji_mbrtowc()
117 if ((wc > 0x80 && wc < 0xa0) || (wc >= 0xe0 && wc < 0xfd)) { in _MSKanji_mbrtowc()
120 ms->ch = wc; in _MSKanji_mbrtowc()
127 wc = (wc << 8) | (*s++ & 0xff); in _MSKanji_mbrtowc()
129 *pwc = wc; in _MSKanji_mbrtowc()
133 *pwc = wc; in _MSKanji_mbrtowc()
134 if (zero || wc != L'\0') { in _MSKanji_mbrtowc()
159 len = (wc > 0x100) ? 2 : 1; in _MSKanji_wcrtomb()
[all …]
H A Dwcwidth.c53 wcwidth_l(wchar_t wc, locale_t loc) in wcwidth_l() argument
58 if (wc == 0) in wcwidth_l()
61 x = ((wc < 0 || wc >= _CACHED_RUNES) ? __runetype(rl, wc) : in wcwidth_l()
62 rl->__runetype[wc]) & (_CTYPE_SWM|_CTYPE_R); in wcwidth_l()
70 wcwidth(wchar_t wc) in wcwidth() argument
72 return (wcwidth_l(wc, uselocale(NULL))); in wcwidth()
83 scrwidth(wchar_t wc) in scrwidth() argument
85 int v = wcwidth(wc); in scrwidth()
H A Dbig5.c90 wchar_t wc; in _BIG5_mbrtowc() local
118 *pwc = wc; in _BIG5_mbrtowc()
124 wc = *s++ & 0xff; in _BIG5_mbrtowc()
128 bs->ch = wc; in _BIG5_mbrtowc()
135 wc = (wc << 8) | (*s++ & 0xff); in _BIG5_mbrtowc()
137 *pwc = wc; in _BIG5_mbrtowc()
141 *pwc = wc; in _BIG5_mbrtowc()
165 if (wc & 0x8000) { in _BIG5_wcrtomb()
166 *s++ = (wc >> 8) & 0xff; in _BIG5_wcrtomb()
167 *s = wc & 0xff; in _BIG5_wcrtomb()
[all …]
H A Dgbk.c90 wchar_t wc; in _GBK_mbrtowc() local
118 *pwc = wc; in _GBK_mbrtowc()
124 wc = *s++ & 0xff; in _GBK_mbrtowc()
128 gs->ch = wc; in _GBK_mbrtowc()
135 wc = (wc << 8) | (*s++ & 0xff); in _GBK_mbrtowc()
137 *pwc = wc; in _GBK_mbrtowc()
141 *pwc = wc; in _GBK_mbrtowc()
165 if (wc & 0x8000) { in _GBK_wcrtomb()
166 *s++ = (wc >> 8) & 0xff; in _GBK_wcrtomb()
167 *s = wc & 0xff; in _GBK_wcrtomb()
[all …]
H A Dfgetws.c51 wint_t wc; in _fgetws_impl() local
67 wc = _fgetwc_unlocked(fp); in _fgetws_impl()
68 if (wc == EOF) { in _fgetws_impl()
81 *wsp++ = wc; in _fgetws_impl()
83 if (wc == L'\n') in _fgetws_impl()
106 wint_t wc; in getws() local
114 wc = _fgetwc_unlocked(stdin); in getws()
115 if (wc == EOF) { in getws()
128 *wsp++ = wc; in getws()
130 if (wc == L'\n') in getws()
H A Deuc.c303 wchar_t wc = 0; in _EUC_mbrtowc_impl() local
352 wc = es->ch; in _EUC_mbrtowc_impl()
356 wc <<= 8; in _EUC_mbrtowc_impl()
358 wc |= chs; in _EUC_mbrtowc_impl()
364 es->ch = wc; in _EUC_mbrtowc_impl()
368 *pwc = wc; in _EUC_mbrtowc_impl()
397 if ((wc & ~0x7f) == 0) { in _EUC_wcrtomb_impl()
399 *s = (char)wc; in _EUC_wcrtomb_impl()
420 if ((wc < 0xa100) || (wc > 0xffff)) { in _EUC_wcrtomb_impl()
441 s[i] = (wc & 0xff); in _EUC_wcrtomb_impl()
[all …]
H A Dgb18030.c186 if (wc & 0x7f000000) { in _GB18030_wcrtomb()
188 wc |= 0x80000000; in _GB18030_wcrtomb()
189 c = (wc >> 24) & 0xff; in _GB18030_wcrtomb()
193 c = (wc >> 16) & 0xff; in _GB18030_wcrtomb()
197 c = (wc >> 8) & 0xff; in _GB18030_wcrtomb()
201 c = wc & 0xff; in _GB18030_wcrtomb()
206 } else if (wc & 0x00ff0000) in _GB18030_wcrtomb()
209 c = (wc >> 8) & 0xff; in _GB18030_wcrtomb()
213 c = wc & 0xff; in _GB18030_wcrtomb()
218 } else if (wc <= 0x7f) { in _GB18030_wcrtomb()
[all …]
H A Dwctrans.c43 towctrans_l(wint_t wc, wctrans_t desc, locale_t loc) in towctrans_l() argument
47 wc = towlower_l(wc, loc); in towctrans_l()
50 wc = towupper_l(wc, loc); in towctrans_l()
58 return (wc); in towctrans_l()
62 towctrans(wint_t wc, wctrans_t desc) in towctrans() argument
64 return (towctrans_l(wc, desc, uselocale(NULL))); in towctrans()
H A Dungetwc.c55 __ungetwc_impl(wint_t wc, FILE *iop, int orient) in __ungetwc_impl() argument
67 if ((wc == WEOF) || ((iop->_flag & _IOREAD) == 0)) { in __ungetwc_impl()
72 n = wctomb(mbs, (wchar_t)wc); in __ungetwc_impl()
98 return (wc); in __ungetwc_impl()
103 __ungetwc_xpg5(wint_t wc, FILE *iop) in __ungetwc_xpg5() argument
105 return (__ungetwc_impl(wc, iop, 1)); in __ungetwc_xpg5()
109 ungetwc(wint_t wc, FILE *iop) in ungetwc() argument
111 return (__ungetwc_impl(wc, iop, 0)); in ungetwc()
H A Dgb2312.c101 wchar_t wc; in _GB2312_mbrtowc() local
127 wc = 0; in _GB2312_mbrtowc()
130 wc = (wc << 8) | (unsigned char)*s++; in _GB2312_mbrtowc()
132 *pwc = wc; in _GB2312_mbrtowc()
134 if (zero || wc != L'\0') { in _GB2312_mbrtowc()
142 _GB2312_wcrtomb(char *_RESTRICT_KYWD s, wchar_t wc, in _GB2312_wcrtomb() argument
157 if (wc & 0x8000) { in _GB2312_wcrtomb()
158 *s++ = (wc >> 8) & 0xff; in _GB2312_wcrtomb()
159 *s = wc & 0xff; in _GB2312_wcrtomb()
162 *s = wc & 0xff; in _GB2312_wcrtomb()
/illumos-gate/usr/src/cmd/localedef/
H A Dwide.c205 *wc = c; in towide_utf8()
245 *wc = c; in towide_utf8()
305 *wc = c; in towide_dbcs()
316 *wc = c; in towide_dbcs()
395 *wc = c; in towide_gb18030()
417 *wc = c; in towide_gb18030()
421 *wc = c; in towide_gb18030()
438 *wc = c; in towide_mskanji()
450 *wc = c; in towide_mskanji()
478 *wc = c; in towide_euc_impl()
[all …]
H A Dctype.c61 return (c1->wc < c2->wc ? -1 : c1->wc > c2->wc ? 1 : 0); in ctype_compare()
142 srch.wc = wc; in get_ctype()
148 ctn->wc = wc; in get_ctype()
281 for (wc = 0; (unsigned)wc < _CACHED_RUNES; wc++) { in dump_ctype()
282 rl.maplower[wc] = wc; in dump_ctype()
283 rl.mapupper[wc] = wc; in dump_ctype()
290 wc = ctn->wc; in dump_ctype()
296 if ((wc >= 1) && (wc <= 127)) { in dump_ctype()
297 if ((wc >= 'A') && (wc <= 'Z')) in dump_ctype()
299 if ((wc >= 'a') && (wc <= 'z')) in dump_ctype()
[all …]
H A Dcharmap.c37 wchar_t wc; member
180 return ((c1->wc < c2->wc) ? -1 : (c1->wc > c2->wc) ? 1 : 0); in cmap_compare_wc()
200 srch.wc = wc; in add_charmap_impl()
207 if ((wc != (wchar_t)-1) && in add_charmap_impl()
213 n->wc = wc; in add_charmap_impl()
228 n->wc = wc; in add_charmap_impl()
291 wc++; in add_charmap_range()
326 if (wc) in lookup_charmap()
327 *wc = n->wc; in lookup_charmap()
334 check_charmap(wchar_t wc) in check_charmap() argument
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dwinwstr.c46 wchar_t wc; in winwstr() local
54 wc = RBYTE(*ptr); in winwstr()
55 sw = mbscrw((int)wc); in winwstr()
56 (void) mbeucw((int)wc); in winwstr()
60 if ((wc = RBYTE(*ptr)) == MBIT) in winwstr()
63 *cp++ = (char) wc; in winwstr()
64 if ((wc = LBYTE(*ptr) | MBIT) == MBIT) in winwstr()
67 *cp++ = (char) wc; in winwstr()
71 if (_curs_mbtowc(&wc, cbuf, CSMAX) <= 0) in winwstr()
74 *wstr++ = wc; in winwstr()
H A Dwinnwstr.c50 wchar_t wc, *cp; in winnwstr() local
62 wc = RBYTE(*ptr); in winnwstr()
63 scrw = mbscrw((int) wc); in winnwstr()
64 (void) mbeucw((int) wc); in winnwstr()
68 if ((wc = RBYTE(*ptr)) == MBIT) in winnwstr()
70 *cp++ = wc; in winnwstr()
71 if ((wc = LBYTE(*ptr) | MBIT) == MBIT) in winnwstr()
73 *cp++ = wc; in winnwstr()
77 if (_curs_mbtowc(&wc, cbuf, CSMAX) <= 0) in winnwstr()
80 *wstr++ = wc; in winnwstr()
H A Dwinstr.c55 chtype wc; in winstr() local
62 wc = RBYTE(*ptr); in winstr()
63 sw = mbscrw((int) wc); in winstr()
64 (void) mbeucw((int) wc); in winstr()
66 if ((wc = RBYTE(*ptr)) == MBIT) in winstr()
69 str[counter++] = (char) wc; in winstr()
70 if ((wc = LBYTE(*ptr) | MBIT) == MBIT) in winstr()
73 str[counter++] = (char) wc; in winstr()
H A Dmbinch.c47 chtype *wp, *ep, wc; in wmbinch() local
57 wc = RBYTE(*wp); in wmbinch()
58 ep = wp + _curs_scrwidth[TYPE(wc & 0377)]; in wmbinch()
61 if ((wc = RBYTE(*wp)) == MBIT) in wmbinch()
64 rs[k++] = (char)wc; in wmbinch()
65 if ((wc = LBYTE(*wp)|MBIT) == MBIT) in wmbinch()
68 rs[k++] = (char)wc; in wmbinch()
/illumos-gate/usr/src/cmd/pr/
H A Dpr.c420 Sepc = wc; in findopt()
871 wchar_t wc; in nexbuf() local
915 *s = wc; in nexbuf()
1098 wc = Etabc; in get()
1102 wc = WEOF; in get()
1112 wc = '\n'; in get()
1126 wc = ' '; in get()
1143 switch (wc) { in get()
1152 wc = '\n'; in get()
1480 wchar_t wc; local
[all …]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.tchar.c92 wchar_t wc; in tstostr() local
143 wchar_t wc; in mbstotcs() local
166 *(ptc++) = (tchar)wc; in mbstotcs()
432 wchar_t wc; in read_() local
540 *t++ = wc; in read_()
555 *t++ = wc; in read_()
579 *t++ = wc; in read_()
599 *t = wc; in read_()
618 *t++ = wc; in read_()
682 wchar_t wc; in write_() local
[all …]
/illumos-gate/usr/src/data/locale/tools/
H A Dutf8-rollup.pl95 my $wc = hex(shift);
101 if (($wc & ~0x7f) == 0) {
102 return sprintf "%02X", $wc;
103 } elsif (($wc & ~0x7ff) == 0) {
106 } elsif (($wc & ~0xffff) == 0) {
109 } elsif ($wc >= 0 && $wc <= 0x10ffff) {
115 $ret = (sprintf "%02X", ($wc & 0x3f) | 0x80) . $ret;
116 $wc >>= 6;
118 $ret = (sprintf "%02X", ($wc & 0xff) | $lead) . $ret;
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwunctrl.c89 wint_t wc; in wunctrl() local
96 wc = cc->_wc[0]; in wunctrl()
97 if (iswcntrl(wc)) { in wunctrl()
98 if (wc == 127) in wunctrl()
100 if (0 <= wc && wc <= 32) in wunctrl()
101 return ((wchar_t *)carat[wc+1]); in wunctrl()

12345678910>>...12