Home
last modified time | relevance | path

Searched refs:wch (Results 1 – 9 of 9) sorted by relevance

/titanic_41/usr/src/lib/libc/port/locale/
H A Dgb18030.c89 wchar_t wch; in _GB18030_mbrtowc() local
125 wch = ch; in _GB18030_mbrtowc()
127 wch = ch; in _GB18030_mbrtowc()
132 wch = (wch << 8) | ch; in _GB18030_mbrtowc()
140 wch = ((wch & 0x7f) << 8) | ch; in _GB18030_mbrtowc()
146 wch = (wch << 8) | ch; in _GB18030_mbrtowc()
152 wch = (wch << 8) | ch; in _GB18030_mbrtowc()
160 *pwc = wch; in _GB18030_mbrtowc()
162 return (wch == L'\0' ? 0 : len - ocount); in _GB18030_mbrtowc()
H A Dutf8.c82 wchar_t lbound, wch; in _UTF8_mbrtowc() local
162 wch = (unsigned char)*s++ & mask; in _UTF8_mbrtowc()
164 wch = us->ch; in _UTF8_mbrtowc()
175 wch <<= 6; in _UTF8_mbrtowc()
176 wch |= *s++ & 0x3f; in _UTF8_mbrtowc()
182 us->ch = wch; in _UTF8_mbrtowc()
185 if (wch < lbound) { in _UTF8_mbrtowc()
193 *pwc = wch; in _UTF8_mbrtowc()
195 return (wch == L'\0' ? 0 : want); in _UTF8_mbrtowc()
/titanic_41/usr/src/lib/libcurses/screen/
H A Dmbaddch.c151 char *wch, rc[2]; in _mbaddch() local
170 wch = win->_waitc; in _mbaddch()
175 wch[0] = (char)wc; in _mbaddch()
181 wch[win->_index] = (char)wc; in _mbaddch()
192 wc = RBYTE(wch[0]); in _mbaddch()
223 for (m = nbyte/2; m > 0; m -= 1, wch += 2) in _mbaddch()
224 *wcp++ = _CHAR((RBYTE(wch[1]) << 8) | in _mbaddch()
225 RBYTE(wch[0])) | CBIT | a; in _mbaddch()
229 *wcp++ = RBYTE(wch[0]) | CBIT | a; in _mbaddch()
H A Dwinwchnstr.c52 wchar_t wch; in winwchnstr() local
80 if (_curs_mbtowc(&wch, mbbuf, CSMAX) <= 0) in winwchnstr()
82 *string++ = wch | attr; in winwchnstr()
/titanic_41/usr/src/lib/libc/port/stdio/
H A Ddoscan.c979 wint_t wch; in wstring() local
988 while (((wch = _wd_getwc(chcount, iop)) != WEOF) && in wstring()
989 !(type == 's' && iswspace(wch))) { in wstring()
991 *ptr = wch; in wstring()
996 if (wch == WEOF) { in wstring()
1000 if (len > 0 && _wd_ungetwc(chcount, wch, iop) == WEOF) in wstring()
1015 int wch; in wstring() local
1023 while (((wch = _bi_getwc(iop)) != EOF) && in wstring()
1024 !(type == 's' && (isascii(wch) ? isspace(wch) : 0))) { in wstring()
1025 (*chcount) += _scrwidth((wchar_t)wch); in wstring()
[all …]
/titanic_41/usr/src/cmd/troff/
H A Dn7.c107 if (!wch) in tbreak()
297 if (nc || wch) in text()
310 if (pendw || !wch) in text()
507 if ((!nc && !wch) || ndone)
681 wch--;
689 savwch = wch;
694 while (wch) {
707 wch--;
722 if (wch == savwch)
753 wch++;
[all …]
H A Dtdef.h507 #define wch env._wch macro
/titanic_41/usr/src/cmd/tr/
H A Dstr.c62 wchar_t wch; local
83 clen = mbrtowc(&wch, s->str, MB_LEN_MAX, NULL);
88 s->lastch = wch;
/titanic_41/usr/src/cmd/xargs/
H A Dxargs.c820 wchar_t wch; in getwchr() local
845 if (mbtowc(&wch, mbc, i) != -1) { in getwchr()
847 return ((wint_t)wch); in getwchr()