HomeSort by: relevance | last modified time | path
    Searched defs:wc (Results 1 - 25 of 53) sorted by relevancy

1 2 3

  /src/lib/libc/stdio/
fgetws.c 49 wint_t wc; local in function:fgetws
64 wc = __fgetwc_unlock(fp);
74 *wsp++ = (wchar_t)wc;
75 if (wc == L'\n') {
fgetwc.c 47 wchar_t wc; local in function:__fgetwc_unlock
65 nr = mbrtowc(&wc, (const char *)fp->_p,
75 if (wc == L'\0') {
86 return wc;
fgetwln.c 81 wint_t wc; local in function:fgetwln
88 while ((wc = __fgetwc_unlock(fp)) != WEOF) {
95 *((wchar_t *)(void *)_EXT(fp)->_fgetstr_buf + len++) = wc;
96 if (wc == L'\n')
109 if (len == 0 || (wc == WEOF && !__sfeof(fp)))
  /src/lib/libc/citrus/
citrus_stdenc_template.h 118 wchar_t wc; local in function:_FUNCNAME
122 ret = _FUNCNAME(mbrtowc_priv)(_CE_TO_EI(ce), &wc, s, n,
126 _FUNCNAME(stdenc_wctocs)(_CE_TO_EI(ce), csid, idx, wc);
138 wchar_t wc; local in function:_FUNCNAME
142 wc = 0;
145 ret = _FUNCNAME(stdenc_cstowc)(_CE_TO_EI(ce), &wc, csid, idx);
150 return _FUNCNAME(wcrtomb_priv)(_CE_TO_EI(ce), s, n, wc, _TO_STATE(ps),
156 _citrus_wc_t * __restrict wc,
160 return _FUNCNAME(mbrtowc_priv)(_CE_TO_EI(ce), wc, s, n,
166 char * __restrict s, size_t n, _citrus_wc_t wc,
    [all...]
citrus_ctype_fallback.c 62 wchar_t wc; local in function:_citrus_ctype_btowc_fallback
75 err = _citrus_ctype_mbrtowc(cc, &wc, &mb, 1, (void *)&pspriv, &nr);
77 *wcresult = wc;
86 wint_t wc, int * __restrict cresult)
99 if (wc == WEOF) {
104 err = _citrus_ctype_wcrtomb(cc, buf, (wchar_t)wc, (void *)&pspriv, &nr);
citrus_ctype_template.h 81 * mbrtowc(&wc, s, n, NULL);
107 * calls of mb/wc functions,
719 _FUNCNAME(ctype_wcrtomb)(void * __restrict cl, char * __restrict s, wchar_t wc,
737 wc = L'\0'; /* SUSv3 */
743 if (wc == L'\0') {
756 wc, psenc, nresult);
834 _FUNCNAME(ctype_wctomb)(void * __restrict cl, char * __restrict s, wchar_t wc,
858 if (wc == L'\0') {
870 err = _FUNCNAME(wcrtomb_priv)(ei, s, sz, wc, psenc, &nr);
890 wchar_t wc; local in function:_FUNCNAME
    [all...]
  /src/tests/lib/libc/locale/
t_mbtowc.c 179 wchar_t wc; local in function:ATF_TC_BODY
185 ret = mbtowc(&wc, "\xe4", 1);
189 (void)printf("Result: 0x%08lX\n",(unsigned long)wc);
190 ret = wctomb(back, wc);
t_btowc.c 82 int c, wc; local in function:h_iso10646
96 wc = btowc(c);
103 c, wc, *wcp);
t_wctype.c 145 wchar_t wc; local in function:h_ctype
166 wc = btowc((unsigned char)*cp);
167 testall(i, (unsigned char)*cp, wc, wct, 1);
171 wc = btowc((unsigned char)*cp);
172 testall(i, (unsigned char)*cp, wc, wct, 0);
177 void testall(int idx, int c, wchar_t wc, wctype_t wct, int inout)
179 printf("Testing class %d (%s), char %c (0x%2.2x), wc %x, wct %ld, expect %d\n",
180 idx, typenames[idx], c, c, wc, (long int)wct, inout);
181 ATF_REQUIRE(!!iswctype(wc, wct) == inout);
187 ATF_REQUIRE_EQ(!!iswalnum(wc), inout)
    [all...]
  /src/bin/ls/
util.c 89 * The reasons why we don't use putwchar(wc) here are:
90 * - If wc == L'\0', we need to restore the initial shift state, but
96 printwc(wchar_t wc, mbstate_t *pst)
101 size = wcrtomb(buf, wc, pst);
104 if (wc == L'\0') {
111 return wc == L'\0' ? 0 : wcwidth(wc);
131 wchar_t wc; local in function:printescaped
145 rv = mbrtowc(&wc, src, span, &src_state);
146 if (rv == 0) { /* assert(wc == L'\0'); *
    [all...]
  /src/lib/libc/locale/
_wcstol.h 58 wint_t wc; local in function:INT_FUNCNAME
82 wc = (wchar_t) *s++;
83 } while (iswspace_l(wc, loc));
84 if (wc == L'-') {
86 wc = *s++;
89 if (wc == L'+')
90 wc = *s++;
93 wc == L'0' && (*s == L'x' || *s == L'X')) {
94 wc = s[1];
99 base = wc == L'0' ? 8 : 10
    [all...]
_wcstoul.h 57 wint_t wc; local in function:INT_FUNCNAME
76 wc = (wchar_t) *s++;
77 } while (iswspace_l(wc, loc));
78 if (wc == L'-') {
80 wc = *s++;
83 if (wc == L'+')
84 wc = *s++;
87 wc == L'0' && (*s == L'x' || *s == L'X')) {
88 wc = s[1];
93 base = wc == L'0' ? 8 : 10
    [all...]
mbrtoc32.c 106 wchar_t wc; local in function:mbrtoc32_l
175 len = mbrtowc_l(&wc, s, n, ps, loc);
194 if ((mb_len = wcrtomb_l(mb, wc, &wcrtombstate, loc)) == (size_t)-1) {
c32rtomb.c 94 char buf[2*MB_LEN_MAX]; /* [shift from init, wc] [shift to init] */
100 wchar_t wc; local in function:c32rtomb_l
197 wc_len = mbrtowc_l(&wc, buf, len, &mbrtowcstate, loc);
203 wc = 0; /* paranoia */
206 default: /* decoded wc */
215 len = wcrtomb_l(s, wc, ps, loc);
  /src/tests/dev/sysmon/
t_swwdog.c 67 struct wdog_conf wc; local in function:testbody
94 wc.wc_count = 1;
95 wc.wc_names = wname;
97 if (rump_sys_ioctl(fd, WDOGIOC_GWDOGS, &wc) == -1)
100 if (wc.wc_count) {
101 assert(wc.wc_count == 1);
103 strlcpy(wm.wm_name, wc.wc_names, sizeof(wm.wm_name));
  /src/lib/libcurses/
addwstr.c 135 wchar_t wc[2]; local in function:waddnwstr
156 wc[0] = *p;
157 wc[1] = L'\0';
158 if (setcchar( &cc, wc, win->wattr, 0, NULL ) == ERR)
get_wstr.c 162 wint_t wc; local in function:__wgetn_wstr
179 while (wget_wch(win, &wc) != ERR
180 && wc != L'\n' && wc != L'\r') {
183 win, wc, remain);
184 *wstr = wc;
186 if (wc == ec || wc == KEY_BACKSPACE || wc == KEY_LEFT) {
189 if ((wchar_t)wc == ec)
    [all...]
add_wchstr.c 139 wchar_t wc; local in function:wadd_wchnstr
200 wc = chp->vals[0];
201 __CTRACE(__CTRACE_INPUT, "wadd_wchnstr: adding %x", wc);
202 cw = wcwidth(wc);
addbytes.c 123 wchar_t wc; local in function:_cursesi_waddbytes
165 n = (int)mbrtowc(&wc, bytes, (size_t)count, &st);
168 wc = *bytes;
171 } else if (wc == 0) {
177 (unsigned)wc, unctrl((unsigned)wc), attr, *py, *px, n);
178 cc.vals[0] = wc;
get_wch.c 55 static int inkey(wchar_t *wc, int to, int delay);
78 inkey(wchar_t *wc, int to, int delay)
90 __CTRACE(__CTRACE_INPUT, "inkey (%p, %d, %d)\n", wc, to, delay);
200 *wc = inbuf[*start];
225 ret = (int)mbrtowc(wc, inbuf + (*working), 1,
228 "inkey: mbrtowc returns %d, wc(%x)\n",
229 ret, *wc);
238 *wc = inbuf[*start];
245 *wc, *start, *working, *end);
254 *wc, *start, *working, *end)
441 cchar_t wc; local in function:wget_wch
    [all...]
  /src/sys/arch/hpc/stand/hpcboot/
hpcboot.cpp 278 WNDCLASS wc; local in function:HpcBootApp::registerClass
280 memset(&wc, 0, sizeof(WNDCLASS));
283 wc.lpfnWndProc = proc;
284 wc.hInstance = _instance;
285 wc.hIcon = LoadIcon(_instance, MAKEINTRESOURCE(IDI_ICON));
286 wc.cbWndExtra = 4; // pointer of `this`
287 wc.hbrBackground= static_cast <HBRUSH>(GetStockObject(LTGRAY_BRUSH));
288 wc.lpszClassName= wc_name;
290 return RegisterClass(&wc);
  /src/lib/libc/regex/
regexec.c 82 wchar_t wc; local in function:__weak_alias
84 nr = mbrtowc(&wc, s, n, mbs);
86 *wi = wc;
  /src/lib/libcurses/EXAMPLES/
ex1.c 69 wint_t wc; local in function:main
91 fprintf( stderr, "WC string length: %d\n", wslen );
92 fprintf( stderr, "WC width: %d\n", wcwidth( cc.vals[ 0 ]));
298 get_wch( &wc );
299 switch ( wc ) {
  /src/sbin/wdogctl/
wdogctl.c 366 struct wdog_conf wc; local in function:list_timers
376 wc.wc_names = NULL;
377 wc.wc_count = 0;
379 if (ioctl(fd, WDOGIOC_GWDOGS, &wc) == -1)
382 count = wc.wc_count;
393 wc.wc_names = buf;
394 if (ioctl(fd, WDOGIOC_GWDOGS, &wc) == -1)
397 count = wc.wc_count;
  /src/sys/dev/sysmon/
sysmon_wdog.c 289 struct wdog_conf *wc = (void *) data; local in function:sysmonioctl_wdog
294 if (wc->wc_names == NULL)
295 wc->wc_count = sysmon_wdog_count;
297 for (i = 0, cp = wc->wc_names,
304 wc->wc_count = i;

Completed in 51 milliseconds

1 2 3