/titanic_51/usr/src/lib/libc/port/locale/ |
H A D | nextwctype.c | 42 nextwctype_l(wint_t wc, wctype_t wct, locale_t loc) in nextwctype_l() argument 54 if (wc < _CACHED_RUNES) { in nextwctype_l() 55 wc++; in nextwctype_l() 56 while (wc < _CACHED_RUNES) { in nextwctype_l() 57 if (rl->__runetype[wc] & wct) in nextwctype_l() 58 return (wc); in nextwctype_l() 59 wc++; in nextwctype_l() 61 wc--; in nextwctype_l() 63 if (rr->__ranges != NULL && wc < rr->__ranges[0].__min) { in nextwctype_l() 64 wc in nextwctype_l() 107 __nextwctype(wint_t wc,wctype_t wct) __nextwctype() argument [all...] |
H A D | towlower.c | 76 towlower_l(wint_t wc, locale_t loc) in towlower_l() argument 78 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() 81 loc->runelocale->__maplower[wc]); in towlower_l() 86 towlower(wint_t wc) in towlower() argument 88 return (iswascii(wc) ? __trans_lower[wc] in towlower() 95 towupper_l(wint_t wc,locale_t loc) towupper_l() argument 105 towupper(wint_t wc) towupper() argument [all...] |
H A D | iswctype.c | 81 iswctype_l(wint_t wc, wctype_t class, locale_t loc) in iswctype_l() argument 83 if (iswascii(wc)) in iswctype_l() 84 return (__ctype_mask[wc] & class); in iswctype_l() 85 return (__istype_l(loc, wc, class)); in iswctype_l() 90 iswctype(wint_t wc, wctype_t class) in iswctype() argument 97 if (iswascii(wc)) in iswctype() 98 return (__ctype_mask[wc] & class); in iswctype() 99 return (__istype(wc, class)); in iswctype() 107 _iswctype(wchar_t wc, int class) in _iswctype() argument 109 if (iswascii(wc)) in _iswctype() 201 isenglish(wint_t wc) isenglish() argument [all...] |
H A D | fputwc.c | 63 __fputwc_impl(wchar_t wc, FILE *fp, int orient) in __fputwc_impl() argument 70 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() 85 if ((len = wctomb(buf, wc)) == (size_t)-1) { 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, FIL argument 127 __fputwc_xpg5(wint_t wc,FILE * fp) __fputwc_xpg5() argument 134 __putwc_xpg5(wint_t wc,FILE * fp) __putwc_xpg5() argument [all...] |
H A D | mskanji.c | 85 wchar_t wc; in _MSKanji_mbrtowc() local 110 wc = (ms->ch << 8) | (*s & 0xFF); in _MSKanji_mbrtowc() 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 in _MSKanji_mbrtowc() 143 _MSKanji_wcrtomb(char * _RESTRICT_KYWD s,wchar_t wc,mbstate_t * _RESTRICT_KYWD ps) _MSKanji_wcrtomb() argument [all...] |
H A D | wcwidth.c | 53 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() [all...] |
H A D | big5.c | 90 wchar_t wc; in _BIG5_mbrtowc() local 116 wc = (bs->ch << 8) | (*s & 0xFF); in _BIG5_mbrtowc() 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() 142 if (zero || wc ! in _BIG5_mbrtowc() 151 _BIG5_wcrtomb(char * _RESTRICT_KYWD s,wchar_t wc,mbstate_t * _RESTRICT_KYWD ps) _BIG5_wcrtomb() argument [all...] |
H A D | gbk.c | 90 wchar_t wc; in _GBK_mbrtowc() local 116 wc = (gs->ch << 8) | (*s & 0xFF); in _GBK_mbrtowc() 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() 142 if (zero || wc ! in _GBK_mbrtowc() 151 _GBK_wcrtomb(char * _RESTRICT_KYWD s,wchar_t wc,mbstate_t * _RESTRICT_KYWD ps) _GBK_wcrtomb() argument [all...] |
H A D | fgetws.c | 51 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 in getws() [all...] |
H A D | euc.c | 143 _EUC_CN_wcrtomb(char *_RESTRICT_KYWD s, wchar_t wc, in _EUC_CN_wcrtomb() argument 146 return (_EUC_wcrtomb_impl(s, wc, ps, SS2, 4, 0, 0)); in _EUC_CN_wcrtomb() 188 _EUC_KR_wcrtomb(char *_RESTRICT_KYWD s, wchar_t wc, in _EUC_KR_wcrtomb() argument 191 return (_EUC_wcrtomb_impl(s, wc, ps, 0, 0, 0, 0)); in _EUC_KR_wcrtomb() 233 _EUC_JP_wcrtomb(char *_RESTRICT_KYWD s, wchar_t wc, in _EUC_JP_wcrtomb() argument 236 return (_EUC_wcrtomb_impl(s, wc, ps, SS2, 2, SS3, 3)); in _EUC_JP_wcrtomb() 278 _EUC_TW_wcrtomb(char *_RESTRICT_KYWD s, wchar_t wc, in _EUC_TW_wcrtomb() argument 281 return (_EUC_wcrtomb_impl(s, wc, ps, SS2, 4, 0, 0)); in _EUC_TW_wcrtomb() 303 wchar_t wc = 0; in _EUC_mbrtowc_impl() local 352 wc in _EUC_mbrtowc_impl() 378 _EUC_wcrtomb_impl(char * _RESTRICT_KYWD s,wchar_t wc,mbstate_t * _RESTRICT_KYWD ps,uint8_t cs2,uint8_t cs2width,uint8_t cs3,uint8_t cs3width) _EUC_wcrtomb_impl() argument [all...] |
H A D | wctrans.c | 43 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 D | gb18030.c | 167 _GB18030_wcrtomb(char *_RESTRICT_KYWD s, wchar_t wc, in _GB18030_wcrtomb() argument 184 if ((wc & ~0x7fffffff) != 0) in _GB18030_wcrtomb() 186 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() 208 else if (wc in _GB18030_wcrtomb() [all...] |
H A D | ungetwc.c | 55 __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 D | gb2312.c | 101 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 in _GB2312_wcrtomb() [all...] |
H A D | mbrtoc16.c | 44 wchar_t wc; in mbrtoc16() local 68 ret = mbrtowc_l(&wc, str, len, ps, uselocale(NULL)); in mbrtoc16() 78 if (wc >= UNICODE_SUP_START) { in mbrtoc16() 79 wc -= UNICODE_SUP_START; in mbrtoc16() 80 c16s->c16_surrogate = UNICODE_SUR_LOWER | UNICODE_SUR_LMASK(wc); in mbrtoc16() 81 out = UNICODE_SUR_UPPER | UNICODE_SUR_UMASK(wc); in mbrtoc16() 83 out = (char16_t)wc; in mbrtoc16()
|
/titanic_51/usr/src/cmd/localedef/ |
H A D | wide.c | 178 tomb_none(char *mb, wchar_t wc) in tomb_none() argument 184 *(uint8_t *)mb = (wc & 0xff); in tomb_none() 193 towide_utf8(wchar_t *wc, const char *mb, unsigned n) in towide_utf8() argument 205 *wc = c; in towide_utf8() 245 *wc = c; in towide_utf8() 250 tomb_utf8(char *mb, wchar_t wc) in tomb_utf8() argument 257 if (wc <= 0x7f) { in tomb_utf8() 258 s[0] = wc & 0x7f; in tomb_utf8() 262 if (wc <= 0x7ff) { in tomb_utf8() 265 } else if (wc < in tomb_utf8() 297 towide_dbcs(wchar_t * wc,const char * mb,unsigned n) towide_dbcs() argument 326 tomb_mbs(char * mb,wchar_t wc) tomb_mbs() argument 356 towide_big5(wchar_t * wc,const char * mb,unsigned n) towide_big5() argument 366 towide_gbk(wchar_t * wc,const char * mb,unsigned n) towide_gbk() argument 376 towide_gb2312(wchar_t * wc,const char * mb,unsigned n) towide_gb2312() argument 387 towide_gb18030(wchar_t * wc,const char * mb,unsigned n) towide_gb18030() argument 430 towide_mskanji(wchar_t * wc,const char * mb,unsigned n) towide_mskanji() argument 463 towide_euc_impl(wchar_t * wc,const char * mb,unsigned n,uint8_t cs2,uint8_t cs2width,uint8_t cs3,uint8_t cs3width) towide_euc_impl() argument 520 towide_euccn(wchar_t * wc,const char * mb,unsigned n) towide_euccn() argument 534 towide_eucjp(wchar_t * wc,const char * mb,unsigned n) towide_eucjp() argument 548 towide_euckr(wchar_t * wc,const char * mb,unsigned n) towide_euckr() argument 562 towide_euctw(wchar_t * wc,const char * mb,unsigned n) towide_euctw() argument 572 to_wide(wchar_t * wc,const char * mb) to_wide() argument 579 to_mb(char * mb,wchar_t wc) to_mb() argument [all...] |
H A D | ctype.c | 41 wchar_t wc; member 61 return (c1->wc < c2->wc ? -1 : c1->wc > c2->wc ? 1 : 0); in ctype_compare() 136 get_ctype(wchar_t wc) in get_ctype() argument 142 srch.wc = wc; in get_ctype() 148 ctn->wc = wc; in get_ctype() 199 add_width(int wc,int width) add_width() argument 233 add_caseconv(int val,int wc) add_caseconv() argument 265 wchar_t wc; dump_ctype() local [all...] |
H A D | charmap.c | 37 wchar_t wc; member 180 return ((c1->wc < c2->wc) ? -1 : (c1->wc > c2->wc) ? 1 : 0); in cmap_compare_wc() 194 add_charmap_impl(char *sym, wchar_t wc, int nodups) in add_charmap_impl() argument 200 srch.wc = wc; in add_charmap_impl() 207 if ((wc != -1) && ((avl_find(&cmap_wc, &srch, &where)) == NULL)) { in add_charmap_impl() 212 n->wc in add_charmap_impl() 258 add_charmap_range(char * s,char * e,int wc) add_charmap_range() argument 317 lookup_charmap(const char * sym,wchar_t * wc) lookup_charmap() argument 333 check_charmap(wchar_t wc) check_charmap() argument [all...] |
/titanic_51/usr/src/lib/libcurses/screen/ |
H A D | winwstr.c | 46 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() [all...] |
H A D | winnwstr.c | 50 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() [all...] |
H A D | winstr.c | 55 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 D | mbinch.c | 47 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()
|
/titanic_51/usr/src/cmd/pr/ |
H A D | pr.c | 327 wchar_t wc; in findopt() local 328 r = mbtowc(&wc, &argv[optnum][argv_ind], in findopt() 335 Etabc = wc; in findopt() 355 wchar_t wc; in findopt() local 356 r = mbtowc(&wc, &argv[optnum][argv_ind], in findopt() 363 Itabc = wc; in findopt() 385 wchar_t wc; in findopt() local 386 r = mbtowc(&wc, &argv[optnum][argv_ind], in findopt() 393 Nsepc = wc; in findopt() 414 wchar_t wc; in findopt() local 873 wchar_t wc; nexbuf() local 1095 wchar_t wc, w; get() local 1165 put(wchar_t wc) put() argument 1481 wchar_t wc; global() local 1528 wint_t wc; global() local [all...] |
/titanic_51/usr/src/cmd/csh/ |
H A D | sh.tchar.c | 93 wchar_t wc; in tstostr() local 105 while (wc = (wchar_t)((*ptc++)&TRIM)) { in tstostr() 106 if ((i1 = wctomb(junk, wc)) <= 0) { in tstostr() 118 while (wc = (wchar_t)((*ptc++)&TRIM)) { in tstostr() 119 if ((len = wctomb(pmb, wc)) <= 0) { in tstostr() 120 *pmb = (unsigned char)wc; in tstostr() 144 wchar_t wc; in mbstotcs() local 152 if ((j = mbtowc(&wc, pmb, MB_CUR_MAX)) <= 0) { in mbstotcs() 162 if ((j = mbtowc(&wc, pmb, MB_CUR_MAX)) <= 0) { in mbstotcs() 163 wc in mbstotcs() 433 wchar_t wc; read_() local 683 wchar_t wc; write_() local [all...] |
/titanic_51/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | wunctrl.c | 89 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()
|