/bionic/libc/bionic/ |
D | wctype.cpp | 56 int iswalnum(wint_t wc) { return __icu_hasBinaryProperty(wc, UCHAR_POSIX_ALNUM, isalnum); } in iswalnum() argument 57 int iswalpha(wint_t wc) { return __icu_hasBinaryProperty(wc, UCHAR_ALPHABETIC, isalpha); } in iswalpha() argument 58 int iswblank(wint_t wc) { return __icu_hasBinaryProperty(wc, UCHAR_POSIX_BLANK, isblank); } in iswblank() argument 59 int iswgraph(wint_t wc) { return __icu_hasBinaryProperty(wc, UCHAR_POSIX_GRAPH, isgraph); } in iswgraph() argument 60 int iswlower(wint_t wc) { return __icu_hasBinaryProperty(wc, UCHAR_LOWERCASE, islower); } in iswlower() argument 61 int iswprint(wint_t wc) { return __icu_hasBinaryProperty(wc, UCHAR_POSIX_PRINT, isprint); } in iswprint() argument 62 int iswspace(wint_t wc) { return __icu_hasBinaryProperty(wc, UCHAR_WHITE_SPACE, isspace); } in iswspace() argument 63 int iswupper(wint_t wc) { return __icu_hasBinaryProperty(wc, UCHAR_UPPERCASE, isupper); } in iswupper() argument 64 int iswxdigit(wint_t wc) { return __icu_hasBinaryProperty(wc, UCHAR_POSIX_XDIGIT, isxdigit); } in iswxdigit() argument 66 int iswcntrl(wint_t wc) { in iswcntrl() argument [all …]
|
D | wcwidth.cpp | 33 int wcwidth(wchar_t wc) { in wcwidth() argument 35 if (wc >= 0x20 && wc < 0x7f) return 1; in wcwidth() 38 if (wc == 0) return 0; in wcwidth() 41 if (wc < ' ' || (wc >= 0x7f && wc <= 0xa0)) return -1; in wcwidth() 47 switch (__icu_charType(wc)) { in wcwidth() 59 return (wc == 0x00ad) ? 1 : 0; in wcwidth() 64 switch (__icu_getIntPropertyValue(wc, UCHAR_HANGUL_SYLLABLE_TYPE)) { in wcwidth() 76 if (__icu_hasBinaryProperty(wc, UCHAR_DEFAULT_IGNORABLE_CODE_POINT, nullptr)) return 0; in wcwidth() 79 if (wc >= 0x3248 && wc <= 0x4dff) { in wcwidth() 82 if (wc <= 0x324f) return 2; in wcwidth() [all …]
|
D | iconv.cpp | 122 wc = 0; in Convert() 138 char32_t wc; member 156 wc = **src_buf; in GetNext() 158 if (wc > 0x7f) errno = EILSEQ; in GetNext() 162 src_bytes_used = mbrtoc32(&wc, *src_buf, *src_bytes_left, &ps); in GetNext() 178 wc = In16(*src_buf, swap); in GetNext() 181 if (wc >= 0xd800 && wc <= 0xdfff) { in GetNext() 182 if (wc >= 0xdc00) { // Low surrogate before high surrogate. in GetNext() 190 uint16_t hi = wc; in GetNext() 192 wc = 0x10000 + ((hi - 0xd800) << 10) + (lo - 0xdc00); in GetNext() [all …]
|
D | icu_wrappers.cpp | 31 int8_t __icu_charType(wint_t wc) { in __icu_charType() argument 34 return u_charType ? u_charType(wc) : -1; in __icu_charType() 37 int32_t __icu_getIntPropertyValue(wint_t wc, UProperty property) { in __icu_getIntPropertyValue() argument 41 return u_getIntPropertyValue ? u_getIntPropertyValue(wc, property) : 0; in __icu_getIntPropertyValue() 44 bool __icu_hasBinaryProperty(wint_t wc, UProperty property, int (*fallback)(int)) { in __icu_hasBinaryProperty() argument 48 return u_hasBinaryProperty ? u_hasBinaryProperty(wc, property) : fallback(wc); in __icu_hasBinaryProperty()
|
D | wchar.cpp | 140 size_t wcrtomb(char* s, wchar_t wc, mbstate_t* ps) { in wcrtomb() argument 145 return c32rtomb(s, static_cast<char32_t>(wc), state); in wcrtomb() 160 wchar_t wc = (*src)[i]; in wcsnrtombs() local 161 if (static_cast<uint32_t>(wc) < 0x80) { in wcsnrtombs() 163 if (wc == 0) { in wcsnrtombs() 168 r = wcrtomb(buf, wc, state); in wcsnrtombs() 178 wchar_t wc = (*src)[i]; in wcsnrtombs() local 179 if (static_cast<uint32_t>(wc) < 0x80) { in wcsnrtombs() 181 dst[o] = wc; in wcsnrtombs() 182 if (wc == 0) { in wcsnrtombs() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | ungetwc.c | 38 __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()
|
D | fgetws.c | 43 wint_t wc; in fgetws() local 55 if ((wc = __fgetwc_unlock(fp)) == WEOF && in fgetws() 58 if (wc == WEOF) { in fgetws() 65 *wsp++ = (wchar_t)wc; in fgetws() 66 if (wc == L'\n') { in fgetws()
|
D | fgetwc.c | 42 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()
|
D | fputwc.c | 40 __fputwc_unlock(wchar_t wc, FILE *fp) in __fputwc_unlock() argument 63 size = wcrtomb(buf, wc, st); in __fputwc_unlock() 74 return (wint_t)wc; in __fputwc_unlock() 78 fputwc(wchar_t wc, FILE *fp) in fputwc() argument 83 r = __fputwc_unlock(wc, fp); in fputwc()
|
/bionic/libc/upstream-openbsd/lib/libc/locale/ |
D | btowc.c | 38 wchar_t wc; in btowc() local 49 if (mbrtowc(&wc, &cc, 1, &mbs) > 1) in btowc() 51 return (wc); in btowc()
|
/bionic/benchmarks/ |
D | stdlib_benchmark.cpp | 201 wchar_t wc; in BM_stdlib_mbrtowc_1() local 203 benchmark::DoNotOptimize(mbrtowc(&wc, "e", 1, nullptr)); in BM_stdlib_mbrtowc_1() 209 wchar_t wc; in BM_stdlib_mbrtowc_2() local 211 benchmark::DoNotOptimize(mbrtowc(&wc, "\xc3\x9f", 3, nullptr)); in BM_stdlib_mbrtowc_2() 217 wchar_t wc; in BM_stdlib_mbrtowc_3() local 219 benchmark::DoNotOptimize(mbrtowc(&wc, "\xe5\xb1\xb1", 3, nullptr)); in BM_stdlib_mbrtowc_3() 225 wchar_t wc; in BM_stdlib_mbrtowc_4() local 227 benchmark::DoNotOptimize(mbrtowc(&wc, "\xf0\xa4\xad\xa2", 4, nullptr)); in BM_stdlib_mbrtowc_4()
|
/bionic/libc/private/ |
D | icu.h | 81 int8_t __icu_charType(wint_t wc); 82 int32_t __icu_getIntPropertyValue(wint_t wc, UProperty property); 83 bool __icu_hasBinaryProperty(wint_t wc, UProperty property, int (*fallback)(int));
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
D | nfnetlink_osf.h | 25 __u32 wc; member 30 struct nf_osf_wc wc; member
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | glob.c | 194 wchar_t wc; in glob() local 220 clen = mbrtowc(&wc, patnext, MB_LEN_MAX, &mbs); in glob() 227 *bufnext++ = wc; in glob() 242 clen = mbrtowc(&wc, patnext, MB_LEN_MAX, &mbs); in glob() 249 *bufnext++ = wc | prot; in glob() 426 wchar_t wc; in globtilde() local 485 clen = mbrtowc(&wc, sc, MB_LEN_MAX, &mbs); in globtilde() 488 wc = (unsigned char)*sc; in globtilde() 492 if ((*dc++ = wc) == EOS) { in globtilde() 762 wchar_t wc; in glob3() local [all …]
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | regcomp.c | 444 wint_t wc; in p_ere_exp() local 525 wc = WGETNEXT(); in p_ere_exp() 529 switch (wc) { in p_ere_exp() 546 p_b_pseudoclass(p, wc); in p_ere_exp() 578 i = wc - '0'; in p_ere_exp() 600 switch (wc) { in p_ere_exp() 608 if (may_escape(p, wc)) in p_ere_exp() 609 ordinary(p, wc); in p_ere_exp() 619 wc = WGETNEXT(); in p_ere_exp() 620 ordinary(p, wc); in p_ere_exp() [all …]
|
D | regexec.c | 82 wchar_t wc; in __weak_alias() local 84 nr = mbrtowc(&wc, s, n, mbs); in __weak_alias() 86 *wi = wc; in __weak_alias()
|
D | engine.c | 166 size_t wc, mbc; in stepback() local 174 for (wc = nchar; wc > 0; wc--) { in stepback() 662 wint_t wc; in backref() local 678 sp += XMBRTOWC(&wc, sp, (size_t)(stop - sp), in backref() 680 if (wc != (wint_t)OPND(s)) in backref() 686 sp += XMBRTOWC(&wc, sp, (size_t)(stop - sp), in backref() 688 if (wc == BADCHAR) in backref() 695 sp += XMBRTOWC(&wc, sp, (size_t)(stop - sp), in backref() 697 if (wc == BADCHAR || !CHIN(cs, wc)) in backref()
|
/bionic/libc/stdio/ |
D | vfwscanf.cpp | 38 static inline bool in_ccl(wchar_t wc, const wchar_t* ccl) { in in_ccl() argument 49 if (*ccl == wc) return member_result; in in_ccl() 60 if (wc >= first && wc <= last) return member_result; in in_ccl() 68 if (*ccl == wc) return member_result; in in_ccl()
|
D | vfscanf.cpp | 417 wchar_t wc = L'\0'; in __svfscanf() local 419 nconv = mbrtowc(&wc, buf, bytes, &mbs); in __svfscanf() 425 … if ((c == CT_CCL && wctob(wc) != EOF && !ccltab[wctob(wc)]) || (c == CT_STRING && iswspace(wc))) { in __svfscanf() 432 if (wcp) wcp[n] = wc; in __svfscanf()
|
D | printf_common.h | 760 static wint_t xfputwc(wchar_t wc, FILE* fp) { in xfputwc() 761 if ((fp->_flags & __SSTR) == 0) return __fputwc_unlock(wc, fp); in xfputwc() 765 size_t len = wcrtomb(buf, wc, &mbs); in xfputwc() 779 return (__sfvwrite(fp, &uio) != EOF ? (wint_t)wc : WEOF); in xfputwc()
|
D | local.h | 252 wint_t __fputwc_unlock(wchar_t wc, FILE* fp);
|
D | stdio.cpp | 928 wint_t putwc(wchar_t wc, FILE* fp) { in putwc() argument 930 return fputwc(wc, fp); in putwc() 933 wint_t putwchar(wchar_t wc) { in putwchar() argument 934 return fputwc(wc, stdout); in putwchar()
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
D | misc.c | 286 int k, wa, wb, wc; local 306 wc = wa + wb; 307 if (wc > a->maxwds) 312 for(x = c->x, xa = x + wc; x < xa; x++) 384 for(xc0 = c->x, xc = xc0 + wc; wc > 0 && !*--xc; --wc) ; 385 c->wds = wc;
|
/bionic/tests/ |
D | wchar_test.cpp | 765 wchar_t wc; in TEST() local 769 n = mbrtowc(&wc, "x", MB_CUR_MAX, nullptr); in TEST() 771 EXPECT_EQ(L'x', wc); in TEST() 773 n = mbrtowc(&wc, "\xc2\xa2", MB_CUR_MAX, nullptr); in TEST() 775 EXPECT_EQ(L'¢', wc); in TEST() 777 n = mbrtowc(&wc, "\xe2\x82\xac", MB_CUR_MAX, nullptr); in TEST() 779 EXPECT_EQ(L'€', wc); in TEST() 781 n = mbrtowc(&wc, "\xf0\xa4\xad\xa2", MB_CUR_MAX, nullptr); in TEST() 783 EXPECT_EQ(L'', wc); in TEST()
|
D | stdio_test.cpp | 399 wint_t wc = L'a'; in TEST() local 400 EXPECT_SNPRINTF("<a>", "<%lc>", wc); in TEST() 404 wint_t wc = L'a'; in TEST() local 405 EXPECT_SWPRINTF(L"<a>", L"<%lc>", wc); in TEST() 409 wchar_t wc = L'a'; in TEST() local 410 EXPECT_SNPRINTF("<a>", "<%C>", wc); in TEST() 414 wchar_t wc = L'a'; in TEST() local 415 EXPECT_SWPRINTF(L"<a>", L"<%C>", wc); in TEST()
|