/freebsd/contrib/ncurses/ncurses/widechar/ |
H A D | lib_erasewchar.c | 45 NCURSES_SP_NAME(erasewchar) (NCURSES_SP_DCLx wchar_t *wch); 47 NCURSES_SP_NAME(erasewchar) (NCURSES_SP_DCLx wchar_t *wch) in NCURSES_SP_NAME() 54 *wch = (wchar_t) value; in NCURSES_SP_NAME() 62 erasewchar(wchar_t *wch) in erasewchar() argument 64 return NCURSES_SP_NAME(erasewchar) (CURRENT_SCREEN, wch); in erasewchar() 75 NCURSES_SP_NAME(killwchar) (NCURSES_SP_DCLx wchar_t *wch); 77 NCURSES_SP_NAME(killwchar) (NCURSES_SP_DCLx wchar_t *wch) in NCURSES_SP_NAME() 84 *wch = (wchar_t) value; in NCURSES_SP_NAME() 92 killwchar(wchar_t *wch) in killwchar() argument 94 return NCURSES_SP_NAME(killwchar) (CURRENT_SCREEN, wch); in killwchar()
|
H A D | lib_cchar.c | 50 const wchar_t *wch, in NCURSES_EXPORT() 60 (void *) wcval, _nc_viswbuf(wch), in NCURSES_EXPORT() 64 if (wch == NULL in NCURSES_EXPORT() 65 || ((len = (unsigned) wcslen(wch)) > 1 && _nc_wacs_width(wch[0]) < 0) in NCURSES_EXPORT() 79 if (_nc_wacs_width(wch[i]) != 0) { in NCURSES_EXPORT() 90 memcpy(&wcval->chars, wch, len * sizeof(wchar_t)); in NCURSES_EXPORT() 102 wchar_t *wch, in getcchar() argument 111 (void *) wch, in getcchar() 132 if (wch == NULL) { in getcchar() 149 wmemcpy(wch, wcval->chars, (size_t) len); in getcchar() [all …]
|
H A D | lib_hline_set.c | 54 NCURSES_CH_T wch; in NCURSES_EXPORT() local 64 wch = *WACS_HLINE; in NCURSES_EXPORT() 66 wch = *ch; in NCURSES_EXPORT() 67 wch = _nc_render(win, wch); in NCURSES_EXPORT() 70 line->text[end] = wch; in NCURSES_EXPORT()
|
H A D | lib_vline_set.c | 53 NCURSES_CH_T wch; in NCURSES_EXPORT() local 62 wch = *WACS_VLINE; in NCURSES_EXPORT() 64 wch = *ch; in NCURSES_EXPORT() 65 wch = _nc_render(win, wch); in NCURSES_EXPORT() 69 line->text[col] = wch; in NCURSES_EXPORT()
|
H A D | lib_unget_wch.c | 69 NCURSES_SP_NAME(unget_wch) (NCURSES_SP_DCLx const wchar_t wch) in NCURSES_SP_NAME() 75 T((T_CALLED("unget_wch(%p, %#lx)"), (void *) SP_PARM, (unsigned long) wch)); in NCURSES_SP_NAME() 78 length = _nc_wcrtomb(0, wch, &state); in NCURSES_SP_NAME() 89 IGNORE_RC((int) wcrtomb(string, wch, &state)); in NCURSES_SP_NAME() 111 unget_wch(const wchar_t wch) in unget_wch() argument 113 return NCURSES_SP_NAME(unget_wch) (CURRENT_SCREEN, wch); in unget_wch()
|
H A D | lib_ins_wch.c | 50 _nc_insert_wch(WINDOW *win, const cchar_t *wch) in NCURSES_EXPORT() 52 int cells = _nc_wacs_width(CharOf(CHDEREF(wch))); in NCURSES_EXPORT() 56 code = winsch(win, (chtype) CharOf(CHDEREF(wch))); in NCURSES_EXPORT() 72 *temp1 = _nc_render(win, *wch); in NCURSES_EXPORT() 84 wins_wch(WINDOW *win, const cchar_t *wch) in wins_wch() argument 88 T((T_CALLED("wins_wch(%p, %s)"), (void *) win, _tracecchar_t(wch))); in wins_wch() 94 code = _nc_insert_wch(win, wch); in wins_wch()
|
H A D | lib_pecho_wchar.c | 39 pecho_wchar(WINDOW *pad, const cchar_t *wch) in NCURSES_EXPORT() 41 T((T_CALLED("pecho_wchar(%p, %s)"), (void *) pad, _tracech_t(wch))); in NCURSES_EXPORT() 47 returnCode(wecho_wchar(pad, wch)); in NCURSES_EXPORT() 49 wadd_wch(pad, wch); in NCURSES_EXPORT()
|
H A D | lib_get_wch.c | 100 wchar_t wch; in NCURSES_EXPORT() local 102 if (check_mbytes(wch, buffer, count, state) != status) { in NCURSES_EXPORT() 106 value = wch; in NCURSES_EXPORT()
|
H A D | lib_inwstr.c | 65 wchar_t wch; in NCURSES_EXPORT() local 68 && ((wch = text[col].chars[inx]) != 0); in NCURSES_EXPORT() 79 wstr[count++] = wch; in NCURSES_EXPORT()
|
H A D | lib_get_wstr.c | 49 wchar_t wch[2]; in wadd_wint() local 51 wch[0] = (wchar_t) (*src); in wadd_wint() 52 wch[1] = 0; in wadd_wint() 53 setcchar(&tmp, wch, A_NORMAL, (short) 0, NULL); in wadd_wint()
|
H A D | lib_add_wch.c | 415 wadd_wch(WINDOW *win, const cchar_t *wch) in wadd_wch() argument 421 _tracecchar_t(wch))); in wadd_wch() 423 if (win && (wadd_wch_nosync(win, *wch) != ERR)) { in wadd_wch() 433 wecho_wchar(WINDOW *win, const cchar_t *wch) in wecho_wchar() argument 439 _tracecchar_t(wch))); in wecho_wchar() 441 if (win && (wadd_wch_nosync(win, *wch) != ERR)) { in wecho_wchar()
|
/freebsd/lib/libc/locale/ |
H A D | gb18030.c | 96 wchar_t wch; in _GB18030_mbrtowc() local 132 wch = ch; in _GB18030_mbrtowc() 134 wch = ch; in _GB18030_mbrtowc() 139 wch = (wch << 8) | ch; in _GB18030_mbrtowc() 147 wch = ((wch & 0x7f) << 8) | ch; in _GB18030_mbrtowc() 153 wch = (wch << 8) | ch; in _GB18030_mbrtowc() 159 wch = (wch << 8) | ch; in _GB18030_mbrtowc() 167 *pwc = wch; in _GB18030_mbrtowc() 169 return (wch == L'\0' ? 0 : len - ocount); in _GB18030_mbrtowc()
|
H A D | utf8.c | 98 wchar_t lbound, wch; in _UTF8_mbrtowc() local 166 wch = (unsigned char)*s++ & mask; in _UTF8_mbrtowc() 168 wch = us->ch; in _UTF8_mbrtowc() 179 wch <<= 6; in _UTF8_mbrtowc() 180 wch |= *s++ & 0x3f; in _UTF8_mbrtowc() 186 us->ch = wch; in _UTF8_mbrtowc() 189 if (wch < lbound) { in _UTF8_mbrtowc() 196 if ((wch >= 0xd800 && wch <= 0xdfff) || wch > 0x10ffff) { in _UTF8_mbrtowc() 204 *pwc = wch; in _UTF8_mbrtowc() 206 return (wch == L'\0' ? 0 : want); in _UTF8_mbrtowc()
|
/freebsd/contrib/ncurses/ncurses/base/ |
H A D | lib_insch.c | 58 NCURSES_CH_T wch; in NCURSES_EXPORT() local 78 SetChar2(wch, ch); in NCURSES_EXPORT() 79 _nc_waddch_nosync(win, wch); in NCURSES_EXPORT() 95 SetChar2(wch, ch); in NCURSES_EXPORT() 101 *temp1 = _nc_render(win, wch); in NCURSES_EXPORT() 119 SetChar2(wch, ch); in NCURSES_EXPORT() 120 wch = _nc_render(win, wch); in NCURSES_EXPORT() 121 count = _nc_build_wch(win, &wch); in NCURSES_EXPORT() 123 code = _nc_insert_wch(win, &wch); in NCURSES_EXPORT()
|
H A D | lib_bkgd.c | 88 cchar_t wch; in wbkgrndset() local 91 memset(&wch, 0, sizeof(wch)); in wbkgrndset() 92 (void) wgetbkgrnd(win, &wch); in wbkgrndset() 93 tmp = _nc_to_char((wint_t) CharOf(wch)); in wbkgrndset() 96 | (AttrOf(wch) & ALL_BUT_COLOR) in wbkgrndset() 107 NCURSES_CH_T wch; in wbkgdset() local 109 SetChar2(wch, ch); in wbkgdset() 110 wbkgrndset(win, CHREF(wch)); in wbkgdset() 270 NCURSES_CH_T wch; in wbkgd() local 271 SetChar2(wch, ch); in wbkgd() [all …]
|
H A D | lib_hline.c | 57 NCURSES_CH_T wch; in NCURSES_EXPORT() local 67 SetChar2(wch, ACS_HLINE); in NCURSES_EXPORT() 69 SetChar2(wch, ch); in NCURSES_EXPORT() 70 wch = _nc_render(win, wch); in NCURSES_EXPORT() 81 line->text[end] = wch; in NCURSES_EXPORT()
|
H A D | lib_vline.c | 56 NCURSES_CH_T wch; in NCURSES_EXPORT() local 65 SetChar2(wch, ACS_VLINE); in NCURSES_EXPORT() 67 SetChar2(wch, ch); in NCURSES_EXPORT() 68 wch = _nc_render(win, wch); in NCURSES_EXPORT() 80 line->text[col] = wch; in NCURSES_EXPORT()
|
H A D | lib_instr.c | 72 wchar_t *wch; in NCURSES_EXPORT() local 77 && (wch = typeCalloc(wchar_t, (unsigned) n2 + 1)) != 0) { in NCURSES_EXPORT() 80 if (getcchar(cell, wch, &attrs, &pair, 0) == OK) { in NCURSES_EXPORT() 85 n3 = wcstombs(0, wch, (size_t) 0); in NCURSES_EXPORT() 99 wcstombs(tmp, wch, n3); in NCURSES_EXPORT() 106 free(wch); in NCURSES_EXPORT()
|
H A D | lib_box.c | 52 NCURSES_CH_T wch; in _my_render() local 53 SetChar2(wch, ch); in _my_render() 54 wch = _nc_render(win, wch); in _my_render() 55 return ((attr_t) CharOf(wch)) | AttrOf(wch); in _my_render()
|
H A D | lib_addch.c | 567 NCURSES_CH_T wch; in waddch() local 568 SetChar2(wch, ch); in waddch() 573 if (win && (waddch_nosync(win, wch) != ERR)) { in waddch() 586 NCURSES_CH_T wch; in wechochar() local 587 SetChar2(wch, ch); in wechochar() 593 if (win && (waddch_nosync(win, wch) != ERR)) { in wechochar()
|
/freebsd/bin/cat/ |
H A D | cat.c | 293 wint_t wch; in cook_cat() local 337 if ((wch = getwc(fp)) == WEOF) { in cook_cat() 344 wch = ch; in cook_cat() 349 if (!iswascii(wch) && !iswprint(wch)) { in cook_cat() 353 wch = toascii(wch); in cook_cat() 355 if (iswcntrl(wch)) { in cook_cat() 356 ch = toascii(wch); in cook_cat() 362 if (putwchar(wch) == WEOF) in cook_cat()
|
/freebsd/usr.bin/wc/ |
H A D | wc.c | 213 wchar_t wch; in cnt() local 301 wch = (unsigned char)*p; in cnt() 302 } else if ((clen = mbrtowc(&wch, p, len, &mbs)) == 0) { in cnt() 312 wch = (unsigned char)*p; in cnt() 317 if (wch != L'\n') in cnt() 321 if (wch == L'\n') { in cnt() 327 if (iswspace(wch)) { in cnt()
|
/freebsd/contrib/llvm-project/libcxx/include/__locale_dir/locale_base_api/ |
H A D | bsd_locale_defaults.h | 23 #define __libcpp_wctob_l(wch, loc) wctob_l(wch, loc) argument
|
/freebsd/usr.bin/printf/ |
H A D | printf.c | 647 wchar_t wch; in asciicode() local 653 switch (mbrtowc(&wch, *gargv + 1, MB_LEN_MAX, &mbs)) { in asciicode() 656 wch = (unsigned char)gargv[0][1]; in asciicode() 659 wch = 0; in asciicode() 662 ch = wch; in asciicode()
|
/freebsd/usr.bin/tr/ |
H A D | str.c | 60 wchar_t wch; in next() local 81 clen = mbrtowc(&wch, s->str, MB_LEN_MAX, NULL); in next() 86 s->lastch = wch; in next()
|