Searched defs:wchar (Results 1 - 25 of 28) sorted by relevance

12

/illumos-gate/usr/src/lib/libcurses/screen/
H A Dwinwch.c44 wchar_t wchar; local
49 (void) _curs_mbtowc(&wchar, wmbinch(win, win->_cury, win->_curx),
51 return (a | wchar);
H A Dwctomb.c41 _curs_wctomb(char *s, wchar_t wchar) argument
48 if (wchar <= 0177 || (wchar <= 0377 && (iscntrl((int)wchar) != 0))) {
50 *s++ = (char)wchar;
53 switch (wchar & EUCMASK) {
78 d = wchar | 0200;
79 wchar >>= 7;
H A Dmbtowc.c38 _curs_mbtowc(wchar_t *wchar, const char *s, size_t n) argument
51 if (wchar)
52 *wchar = c;
69 if (wchar)
70 *wchar = c;
84 if (wchar)
85 *wchar = intcode | mask;
H A Dtgetwch.c50 wchar_t wchar; local
72 (void) _curs_mbtowc(&wchar, buf, n);
73 return (wchar);
H A Dwgetwch.c47 wchar_t wchar; local
70 if ((_curs_mbtowc(&wchar, buf, n)) < 0)
72 return ((int)wchar);
H A Dmbtranslate.c135 wchar_t wchar; local
143 (void) _curs_mbtowc(&wchar, byte, width);
144 *bufp++ = wchar;
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dwctomb.c31 #include <wchar.h>
37 wctomb_l(char *s, wchar_t wchar, locale_t loc) argument
46 if ((rval = wcrtomb_l(s, wchar, &mbs, loc)) == (size_t)-1)
52 wctomb(char *s, wchar_t wchar) argument
54 return (wctomb_l(s, wchar, uselocale(NULL)));
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_cmds.c1115 wchar_t wchar; local
1116 length = _mbftowc(multic, &wchar, getchar, &peekc);
H A Dprintf.c373 wchar_t wchar; local
395 length = mbtowc(&wchar, (char *)s, MB_LEN_MAX);
401 putchar(wchar);
H A Dex_vmain.c189 wchar_t wchar; local
192 (void)_mbftowc(multic, &wchar, getkey, &Peekkey);
615 wchar_t wchar; local
631 length = mbtowc(&wchar, (char *)ccursor, MULTI_BYTE_MAX);
712 wchar_t wchar; local
713 int length = mbtowc(&wchar, (char *)cursor, MULTI_BYTE_MAX);
720 putchar(wchar);
H A Dex_voper.c464 wchar_t wchar; local
465 length = _mbftowc(lastcp, &wchar, getesc, &Peekkey);
466 if (length <= 0 || wchar == 0) {
470 i = wchar;
1009 wchar_t wchar; local
1018 if ((length = mbtowc(&wchar, (char *)wcursor,
1019 MULTI_BYTE_MAX)) > 0 && wchar == c)
1034 wchar_t wchar; local
1041 length = mbtowc(&wchar, (char *)wcursor,
H A Dex_vops.c107 wchar_t wchar; local
191 length = mbtowc(&wchar, (char *)cp, MULTI_BYTE_MAX);
197 putchar(wchar);
400 wchar_t wchar; local
403 length = mbtowc(&wchar, (char *)cp, MULTI_BYTE_MAX);
412 putchar(wchar);
H A Dex_put.c204 wchar_t wchar; local
210 if((n = mbtowc(&wchar, (char *)cp, MULTI_BYTE_MAX)) < 0) {
216 putchar(wchar);
791 wchar_t wchar; local
796 (wchar=vtube[outline][outcol]) < ' ')
797 wchar = ' ';
798 if((int)(wchar & QUOTE)) /* no sign extension on 3B */
799 wchar = ' ';
800 length = wctomb((char *)multic, wchar);
801 if ((scrlength = wcwidth(wchar)) <
[all...]
H A Dex_vops2.c956 wchar_t wchar = 0; local
1117 multic[0] = wchar = c;
1146 multic[0] = wchar = c;
1160 if((length = _mbftowc((char *)multic, &wchar, getkey, &Peekkey)) <= 0) {
1174 if ((width = wcwidth(wchar)) <= 0)
1175 width = (wchar <= 0177 ? 1 : 4);
1196 if((length = mbftowc((char *)multic, &wchar, getkey, &Peekkey)) <= 0) {
1198 if((length = _mbftowc((char *)multic, &wchar, getkey, &Peekkey)) <= 0) {
1221 if((bytelength = mbtowc(&wchar, (char *)wp, MULTI_BYTE_MAX)) < 0) {
1225 int curwidth = wcwidth(wchar);
[all...]
H A Dex_vput.c342 wchar_t wchar; local
357 length = mbtowc(&wchar, (char *)p, MULTI_BYTE_MAX);
371 (void) vputchar(wchar);
618 wchar_t *tp, wchar; local
735 wchar = *tp++;
736 if ((wchar & QUOTE) == 0)
738 if ((wchar & TRIM) == 0)
878 wchar_t *up, wchar; local
891 if((wchar = *up++) != FILLER)
892 (void) vputchar(wchar);
929 wchar_t wchar; local
1079 wchar_t wchar; local
[all...]
H A Dex_subr.c566 wchar_t wchar; local
576 length = mbtowc(&wchar, (char *)lim, MULTI_BYTE_MAX);
587 if ((col = wcwidth(wchar)) < 0)
593 length = mbtowc(&wchar, (char *)gp, MULTI_BYTE_MAX);
599 putchar(wchar);
612 wchar_t wchar; local
622 length = mbtowc(&wchar, (char *)lim, MULTI_BYTE_MAX);
633 length = mbtowc(&wchar, (char *)gp, MULTI_BYTE_MAX);
639 putchar(wchar);
853 wchar_t wchar; local
[all...]
/illumos-gate/usr/src/cmd/troff/
H A Dn2.c63 wchar_t wchar; variable
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Deuc.multibyte.c48 _mbtowc_euc(wchar_t *wchar, char *s, size_t n) argument
63 if(wchar)
64 *wchar = c;
70 if(wchar)
71 *wchar = c;
77 if(wchar)
78 *wchar = c;
84 if(wchar)
85 *wchar = c;
99 if(wchar)
155 _wctomb_euc(char *s, wchar_t wchar) argument
[all...]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_utf8.c171 * The wctomb() function converts a wide character wchar into a multibyte
178 smb_wctomb(char *mbchar, smb_wchar_t wchar) argument
180 if ((wchar & ~0x7f) == 0) {
181 *mbchar = (char)wchar;
185 if ((wchar & ~0x7ff) == 0) {
186 *mbchar++ = (wchar >> 6) | 0xc0;
187 *mbchar = (wchar & 0x3f) | 0x80;
191 *mbchar++ = (wchar >> 12) | 0xe0;
192 *mbchar++ = ((wchar >> 6) & 0x3f) | 0x80;
193 *mbchar = (wchar
[all...]
H A Dsmb_msgbuf.c224 smb_wchar_t wchar; local
338 wchar = *mb->scan++;
340 if (wchar == 0)
342 ival = smb_wctomb(cvalp, wchar);
365 while ((wchar = LE_IN16(tmp_scan)) != 0) {
385 wchar = LE_IN16(mb->scan);
388 if (wchar == 0)
390 ival = smb_wctomb(cvalp, wchar);
469 smb_wchar_t wchar; local
586 count = smb_mbtowc(&wchar, cval
[all...]
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dregcmp.c83 static int add_char(char *compilep, wchar_t wchar);
84 static int add_single_char_expr(char *compilep, wchar_t wchar);
96 static int get_wchar(wchar_t *wchar, const char *regexp);
898 add_char(char *compilep, wchar_t wchar) argument
902 if ((unsigned int)wchar <= (unsigned int)0x7f) {
903 *compilep = (unsigned char)wchar;
906 expr_length = wctomb(compilep, wchar);
912 add_single_char_expr(char *compilep, wchar_t wchar) argument
916 if ((unsigned int)wchar <= (unsigned int)0x7f) {
919 *compilep = (unsigned char)wchar;
[all...]
/illumos-gate/usr/src/cmd/prstat/
H A Dprutil.c40 #include <wchar.h>
331 wchar_t wchar; local
338 length = mbtowc(&wchar, cp, MB_LEN_MAX);
343 if (!iswprint(wchar)) {
/illumos-gate/usr/src/cmd/ps/
H A Ducbps.c850 wchar_t wchar; local
1018 length = mbtowc(&wchar, cp, MB_LEN_MAX);
1019 if (length < 0 || !iswprint(wchar)) {
1148 wchar_t wchar; local
1151 if ((neucsz = mbtowc(&wchar, cmd, MB_LEN_MAX)) < 0)
1153 if ((nscrsz = scrwidth(wchar)) == 0)
/illumos-gate/usr/src/cmd/file/
H A Dfile.c134 static wchar_t wchar; variable
849 Max = FBSZ - MB_LEN_MAX; /* prevent cut of wchar read */
860 if ((length = mbtowc(&wchar, &fbuf[i], MB_CUR_MAX))
861 <= 0 || !iswprint(wchar)) {
892 if ((length = mbtowc(&wchar, &fbuf[i], MB_CUR_MAX))
893 <= 0 || !iswprint(wchar)) {
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mbuf_marshaling.c1114 smb_wchar_t wchar; local
1129 consumed = smb_mbtowc(&wchar, ascii, MTS_MB_CHAR_MAX);
1139 mbc_marshal_store_byte(mbc, wchar);
1140 mbc_marshal_store_byte(mbc, wchar >> 8);
1440 uint16_t wchar; local
1458 if (mbc_marshal_get_short(mbc, &wchar) != 0)
1461 if (wchar == 0) goto done;
1463 emitted = smb_wctomb(ch, wchar);

Completed in 90 milliseconds

12