/ndk/sources/android/support/src/musl-ctype/ |
D | wcwidth.c | 11 int wcwidth(wchar_t wc) in wcwidth() argument 13 if (wc < 0xffU) in wcwidth() 14 return (wc+1 & 0x7f) >= 0x21 ? 1 : wc ? -1 : 0; in wcwidth() 15 if ((wc & 0xfffeffffU) < 0xfffe) { in wcwidth() 16 if ((table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1) in wcwidth() 18 if ((wtable[wtable[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1) in wcwidth() 22 if ((wc & 0xfffe) == 0xfffe) in wcwidth() 24 if (wc-0x20000U < 0x20000) in wcwidth() 26 if (wc == 0xe0001 || wc-0xe0020U < 0x5f || wc-0xe0100 < 0xef) in wcwidth()
|
D | towctrans.c | 225 static wchar_t __towcase(wchar_t wc, int lower) in __towcase() argument 231 if (!iswalpha(wc) in __towcase() 232 || (unsigned)wc - 0x0600 <= 0x0fff-0x0600 in __towcase() 233 || (unsigned)wc - 0x2e00 <= 0xa63f-0x2e00 in __towcase() 234 || (unsigned)wc - 0xa800 <= 0xfeff-0xa800) in __towcase() 235 return wc; in __towcase() 237 if (lower && (unsigned)wc - 0x10a0 < 0x2e) in __towcase() 238 if (wc>0x10c5 && wc != 0x10c7 && wc != 0x10cd) return wc; in __towcase() 239 else return wc + 0x2d00 - 0x10a0; in __towcase() 240 if (!lower && (unsigned)wc - 0x2d00 < 0x26) in __towcase() [all …]
|
D | iswctype.c | 18 int iswctype(wint_t wc, wctype_t type) in iswctype() argument 22 return iswalnum(wc); in iswctype() 24 return iswalpha(wc); in iswctype() 26 return iswblank(wc); in iswctype() 28 return iswcntrl(wc); in iswctype() 30 return iswdigit(wc); in iswctype() 32 return iswgraph(wc); in iswctype() 34 return iswlower(wc); in iswctype() 36 return iswprint(wc); in iswctype() 38 return iswpunct(wc); in iswctype() [all …]
|
D | iswprint.c | 10 int iswprint(wint_t wc) in iswprint() argument 12 if (wc < 0xffU) in iswprint() 13 return (wc+1 & 0x7f) >= 0x21; in iswprint() 14 if (wc < 0x2028U || wc-0x202aU < 0xd800-0x202a || wc-0xe000U < 0xfff9-0xe000) in iswprint() 16 if (wc-0xfffcU > 0x10ffff-0xfffc || (wc&0xfffe)==0xfffe) in iswprint()
|
D | iswalpha.c | 7 int iswalpha(wint_t wc) in iswalpha() argument 9 if (wc<0x20000U) in iswalpha() 10 return (table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1; in iswalpha() 11 if (wc<0x2fffeU) in iswalpha()
|
D | iswcntrl.c | 4 int iswcntrl(wint_t wc) in iswcntrl() argument 6 return (unsigned)wc < 32 in iswcntrl() 7 || (unsigned)(wc-0x7f) < 33 in iswcntrl() 8 || (unsigned)(wc-0x2028) < 2 in iswcntrl() 9 || (unsigned)(wc-0xfff9) < 3; in iswcntrl()
|
D | iswpunct.c | 7 int iswpunct(wint_t wc) in iswpunct() argument 9 if (wc<0x20000U) in iswpunct() 10 return (table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1; in iswpunct()
|
D | iswlower.c | 3 int iswlower(wint_t wc) in iswlower() argument 5 return towupper(wc) != wc || wc == 0xdf; in iswlower()
|
D | wctrans.c | 11 wint_t towctrans(wint_t wc, wctrans_t trans) in towctrans() argument 13 if (trans == (wctrans_t)1) return towupper(wc); in towctrans() 14 if (trans == (wctrans_t)2) return towlower(wc); in towctrans() 15 return wc; in towctrans()
|
D | iswxdigit.c | 4 int iswxdigit(wint_t wc) in iswxdigit() argument 6 return (unsigned)(wc-'0') < 10 || (unsigned)((wc|32)-'a') < 6; in iswxdigit()
|
D | iswupper.c | 3 int iswupper(wint_t wc) in iswupper() argument 5 return towlower(wc) != wc; in iswupper()
|
D | iswalnum.c | 4 int iswalnum(wint_t wc) in iswalnum() argument 6 return iswdigit(wc) || iswalpha(wc); in iswalnum()
|
D | iswgraph.c | 3 int iswgraph(wint_t wc) in iswgraph() argument 6 return !iswspace(wc) && iswprint(wc); in iswgraph()
|
D | iswspace.c | 9 int iswspace(wint_t wc) in iswspace() argument 17 return wc && wcschr(spaces, wc); in iswspace()
|
D | iswblank.c | 5 int iswblank(wint_t wc) in iswblank() argument 7 return isblank(wc); in iswblank()
|
D | iswdigit.c | 6 int iswdigit(wint_t wc) in iswdigit() argument 8 return (unsigned)wc-'0' < 10; in iswdigit()
|
/ndk/sources/android/support/src/musl-multibyte/ |
D | wcrtomb.c | 10 size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict st) in wcrtomb() argument 13 if ((unsigned)wc < 0x80) { in wcrtomb() 14 *s = wc; in wcrtomb() 16 } else if ((unsigned)wc < 0x800) { in wcrtomb() 17 *s++ = 0xc0 | (wc>>6); in wcrtomb() 18 *s = 0x80 | (wc&0x3f); in wcrtomb() 20 } else if ((unsigned)wc < 0xd800 || (unsigned)wc-0xe000 < 0x2000) { in wcrtomb() 21 *s++ = 0xe0 | (wc>>12); in wcrtomb() 22 *s++ = 0x80 | ((wc>>6)&0x3f); in wcrtomb() 23 *s = 0x80 | (wc&0x3f); in wcrtomb() [all …]
|
D | mbtowc.c | 11 int mbtowc(wchar_t *restrict wc, const char *restrict src, size_t n) in mbtowc() argument 18 if (!wc) wc = (void *)&wc; in mbtowc() 20 if (*s < 0x80) return !!(*wc = *s); in mbtowc() 32 *wc = c; in mbtowc() 39 *wc = c; in mbtowc() 44 *wc = c<<6 | *s++-0x80; in mbtowc()
|
D | mbrtowc.c | 11 size_t mbrtowc(wchar_t *restrict wc, const char *restrict src, size_t n, mbstate_t *restrict st) in mbrtowc() argument 24 } else if (!wc) wc = (void *)&wc; in mbrtowc() 28 if (*s < 0x80) return !!(*wc = *s); in mbrtowc() 39 *wc = c; in mbrtowc()
|
D | wctomb.c | 10 int wctomb(char *s, wchar_t wc) in wctomb() argument 13 return wcrtomb(s, wc, 0); in wctomb()
|
/ndk/sources/android/support/src/ |
D | wchar_support.c | 7 static int _wc_indelim(wchar_t wc, const wchar_t* delim) { in _wc_indelim() argument 9 if (wc == *delim) in _wc_indelim() 19 wchar_t wc = from[n]; in wcpcpy() local 20 to[n] = wc; in wcpcpy() 21 if (wc == L'\0') in wcpcpy() 31 wchar_t wc = src[i]; in wcpncpy() local 32 dst[i] = wc; in wcpncpy() 33 if (wc == L'\0') in wcpncpy() 63 wchar_t wc = s2[i]; in wcscat() local 64 s1[n+i] = wc; in wcscat() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/support/ibm/ |
D | xlocale.h | 144 int iswalnum_l(wchar_t wc, locale_t locale) in iswalnum_l() argument 146 return __xiswalnum(locale, wc); in iswalnum_l() 150 int iswalpha_l(wchar_t wc, locale_t locale) in iswalpha_l() argument 152 return __xiswalpha(locale, wc); in iswalpha_l() 156 int iswblank_l(wchar_t wc, locale_t locale) in iswblank_l() argument 158 return __xiswblank(locale, wc); in iswblank_l() 162 int iswcntrl_l(wchar_t wc, locale_t locale) in iswcntrl_l() argument 164 return __xiswcntrl(locale, wc); in iswcntrl_l() 168 int iswdigit_l(wchar_t wc, locale_t locale) in iswdigit_l() argument 170 return __xiswdigit(locale, wc); in iswdigit_l() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
D | cwctype | 30 int iswalnum(wint_t wc); 31 int iswalpha(wint_t wc); 32 int iswblank(wint_t wc); // C99 33 int iswcntrl(wint_t wc); 34 int iswdigit(wint_t wc); 35 int iswgraph(wint_t wc); 36 int iswlower(wint_t wc); 37 int iswprint(wint_t wc); 38 int iswpunct(wint_t wc); 39 int iswspace(wint_t wc); [all …]
|
/ndk/sources/android/support/src/wcstox/ |
D | shgetc.c | 17 wchar_t wc = *f->rpos++; in shgetc() local 18 int ch = (wc < 128) ? (int)wc : '@'; in shgetc()
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | codecvt_test.cpp | 519 wchar_t wc; in special_encodings() local 521 CPPUNIT_ASSERT( cvt.in(state, &c, &c + 1, from_next, &wc, &wc, to_next) == codecvt_base::ok ); in special_encodings() 522 CPPUNIT_ASSERT( to_next == &wc ); in special_encodings() 523 … CPPUNIT_ASSERT( cvt.in(state, &c, &c + 1, from_next, &wc, &wc + 1, to_next) == codecvt_base::ok ); in special_encodings() 524 CPPUNIT_ASSERT( wc == L'0' ); in special_encodings() 525 CPPUNIT_ASSERT( to_next == &wc + 1 ); in special_encodings() 593 wchar_t wc; in special_encodings() local 601 &wc, &wc + 1, to_next); in special_encodings() 607 CPPUNIT_ASSERT( wc == utf8_wstr[windex++] ); in special_encodings() 608 wc = 0; in special_encodings() [all …]
|