Home
last modified time | relevance | path

Searched refs:wc (Results 1 – 21 of 21) sorted by relevance

/bionic/libc/bionic/
Dwctype.cpp37 int iswalnum(wint_t wc) { return isalnum(wc); } in iswalnum() argument
38 int iswalpha(wint_t wc) { return isalpha(wc); } in iswalpha() argument
39 int iswblank(wint_t wc) { return isblank(wc); } in iswblank() argument
40 int iswcntrl(wint_t wc) { return iscntrl(wc); } in iswcntrl() argument
41 int iswdigit(wint_t wc) { return isdigit(wc); } in iswdigit() argument
42 int iswgraph(wint_t wc) { return isgraph(wc); } in iswgraph() argument
43 int iswlower(wint_t wc) { return islower(wc); } in iswlower() argument
44 int iswprint(wint_t wc) { return isprint(wc); } in iswprint() argument
45 int iswpunct(wint_t wc) { return ispunct(wc); } in iswpunct() argument
46 int iswspace(wint_t wc) { return isspace(wc); } in iswspace() argument
[all …]
Dwchar.cpp150 size_t wcrtomb(char* s, wchar_t wc, mbstate_t* ps) { in wcrtomb() argument
155 return c32rtomb(s, static_cast<char32_t>(wc), state); in wcrtomb()
170 wchar_t wc = (*src)[i]; in wcsnrtombs() local
171 if (static_cast<uint32_t>(wc) < 0x80) { in wcsnrtombs()
173 if (wc == 0) { in wcsnrtombs()
178 r = wcrtomb(buf, wc, state); in wcsnrtombs()
188 wchar_t wc = (*src)[i]; in wcsnrtombs() local
189 if (static_cast<uint32_t>(wc) < 0x80) { in wcsnrtombs()
191 dst[o] = wc; in wcsnrtombs()
192 if (wc == 0) { in wcsnrtombs()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/locale/
D_wcstoul.h52 wint_t wc; in FUNCNAME() local
68 wc = (wchar_t) *s++; in FUNCNAME()
69 } while (iswspace(wc)); in FUNCNAME()
70 if (wc == L'-') { in FUNCNAME()
72 wc = *s++; in FUNCNAME()
75 if (wc == L'+') in FUNCNAME()
76 wc = *s++; in FUNCNAME()
79 wc == L'0' && (*s == L'x' || *s == L'X')) { in FUNCNAME()
80 wc = s[1]; in FUNCNAME()
85 base = wc == L'0' ? 8 : 10; in FUNCNAME()
[all …]
D_wcstol.h53 wint_t wc; in FUNCNAME() local
70 wc = (wchar_t) *s++; in FUNCNAME()
71 } while (iswspace(wc)); in FUNCNAME()
72 if (wc == L'-') { in FUNCNAME()
74 wc = *s++; in FUNCNAME()
77 if (wc == L'+') in FUNCNAME()
78 wc = *s++; in FUNCNAME()
81 wc == L'0' && (*s == L'x' || *s == L'X')) { in FUNCNAME()
82 wc = s[1]; in FUNCNAME()
87 base = wc == L'0' ? 8 : 10; in FUNCNAME()
[all …]
Dbtowc.c38 wchar_t wc; in btowc() local
49 if (mbrtowc(&wc, &cc, 1, &mbs) > 1) in btowc()
51 return (wc); in btowc()
Dwctoint.h34 wctoint(wchar_t wc) in wctoint() argument
38 switch (wc) { in wctoint()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dungetwc.c38 __ungetwc(wint_t wc, FILE *fp) in __ungetwc() argument
42 if (wc == WEOF) in __ungetwc()
62 wcio->wcio_ungetwc_buf[wcio->wcio_ungetwc_inbuf++] = wc; in __ungetwc()
65 return wc; in __ungetwc()
69 ungetwc(wint_t wc, FILE *fp) in ungetwc() argument
74 r = __ungetwc(wc, fp); in ungetwc()
Dfgetws.c43 wint_t wc; in fgetws() local
55 if ((wc = __fgetwc_unlock(fp)) == WEOF && errno == EILSEQ) { in fgetws()
58 if (wc == WEOF) { in fgetws()
65 *wsp++ = (wchar_t)wc; in fgetws()
66 if (wc == L'\n') { in fgetws()
Dfgetwc.c42 wchar_t wc; in __fgetwc_unlock() local
54 wc = wcio->wcio_ungetwc_buf[--wcio->wcio_ungetwc_inbuf]; in __fgetwc_unlock()
56 return wc; in __fgetwc_unlock()
70 size = mbrtowc(&wc, &c, 1, st); in __fgetwc_unlock()
77 return wc; in __fgetwc_unlock()
Dfputwc.c40 __fputwc_unlock(wchar_t wc, FILE *fp) in __fputwc_unlock() argument
64 size = wcrtomb(buf, wc, st); in __fputwc_unlock()
75 return (wint_t)wc; in __fputwc_unlock()
79 fputwc(wchar_t wc, FILE *fp) in fputwc() argument
84 r = __fputwc_unlock(wc, fp); in fputwc()
Dputwchar.c41 putwchar(wchar_t wc) in putwchar() argument
44 return fputwc(wc, stdout); in putwchar()
Dputwc.c41 putwc(wchar_t wc, FILE *fp) in putwc() argument
44 return fputwc(wc, fp); in putwc()
Dfvwrite.h49 wint_t __fputwc_unlock(wchar_t wc, FILE *fp);
Dvfprintf.c285 wchar_t wc; in __vfprintf() local
489 while ((n = mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) { in __vfprintf()
491 if (wc == '%') { in __vfprintf()
1149 wchar_t wc; in __find_arguments() local
1211 while ((n = mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) { in __find_arguments()
1213 if (wc == '%') { in __find_arguments()
Dvfwprintf.c130 __xfputwc(wchar_t wc, FILE *fp) in __xfputwc() argument
139 return (__fputwc_unlock(wc, fp)); in __xfputwc()
142 len = wcrtomb(buf, wc, &mbs); in __xfputwc()
153 return (__sfvwrite(fp, &uio) != EOF ? (wint_t)wc : WEOF); in __xfputwc()
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_osf.h46 __u32 wc; member
52 struct xt_osf_wc wc; member
/bionic/tests/
Dwchar_test.cpp472 wchar_t wc; in TEST() local
476 n = mbrtowc(&wc, "x", MB_CUR_MAX, NULL); in TEST()
478 EXPECT_EQ(L'x', wc); in TEST()
480 n = mbrtowc(&wc, "\xc2\xa2", MB_CUR_MAX, NULL); in TEST()
482 EXPECT_EQ(L'¢', wc); in TEST()
484 n = mbrtowc(&wc, "\xe2\x82\xac", MB_CUR_MAX, NULL); in TEST()
486 EXPECT_EQ(L'€', wc); in TEST()
488 n = mbrtowc(&wc, "\xf0\xa4\xad\xa2", MB_CUR_MAX, NULL); in TEST()
490 EXPECT_EQ(L'��', wc); in TEST()
Dstdio_test.cpp240 wint_t wc = L'a'; in TEST() local
241 EXPECT_EQ(3, snprintf(buf, sizeof(buf), "<%lc>", wc)); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dmisc.c282 int k, wa, wb, wc; local
302 wc = wa + wb;
303 if (wc > a->maxwds)
308 for(x = c->x, xa = x + wc; x < xa; x++)
380 for(xc0 = c->x, xc = xc0 + wc; wc > 0 && !*--xc; --wc) ;
381 c->wds = wc;
/bionic/libc/stdio/
Dlocal.h139 wint_t __fputwc_unlock(wchar_t wc, FILE *fp);
/bionic/libc/kernel/uapi/rdma/
Dib_user_verbs.h355 struct ib_uverbs_wc wc[0]; member