/bionic/libc/private/ |
D | bionic_ctype.h | 32 static inline bool IsAlpha(int ch) { in IsAlpha() argument 33 return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z'); in IsAlpha() 36 static inline bool IsDigit(int ch) { in IsDigit() argument 37 return (ch >= '0' && ch <= '9'); in IsDigit() 40 static inline bool IsSpace(int ch) { in IsSpace() argument 41 return (ch == ' ') || (ch >= '\t' && ch <= '\r'); in IsSpace() 44 static inline bool IsUpper(int ch) { in IsUpper() argument 45 return (ch >= 'A' && ch <= 'Z'); in IsUpper() 48 static inline bool IsXDigit(int ch) { in IsXDigit() argument 49 return (ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') || (ch >= 'a' && ch <= 'f'); in IsXDigit()
|
/bionic/libc/dns/resolv/ |
D | res_comp.c | 172 int pch = PERIOD, ch = *dn++; in res_hnok() local 174 while (ch != '\0') { in res_hnok() 177 if (periodchar(ch)) { in res_hnok() 180 if (!borderchar(ch)) in res_hnok() 183 if (!borderchar(ch)) in res_hnok() 186 if (!middlechar(ch)) in res_hnok() 189 pch = ch, ch = nch; in res_hnok() 215 int ch, escaped = 0; in res_mailok() local 222 while ((ch = *dn++) != '\0') { in res_mailok() 223 if (!domainchar(ch)) in res_mailok() [all …]
|
/bionic/libc/dns/nameser/ |
D | ns_ttl.c | 84 int ch; in ns_format_ttl() local 86 for (p = odst; (ch = *p) != '\0'; p++) in ns_format_ttl() 87 if (isascii(ch) && isupper(ch)) in ns_format_ttl() 88 *p = tolower(ch); in ns_format_ttl() 99 int ch, digits, dirty; in ns_parse_ttl() local 105 while ((ch = *src++) != '\0') { in ns_parse_ttl() 106 if (!isascii(ch) || !isprint(ch)) in ns_parse_ttl() 108 if (isdigit(ch)) { in ns_parse_ttl() 110 tmp += (ch - '0'); in ns_parse_ttl() 116 if (islower(ch)) in ns_parse_ttl() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | base64.c | 195 int tarindex, state, ch; local 202 while ((ch = (unsigned char)*src++) != '\0') { 203 if (isspace(ch)) /* Skip whitespace anywhere. */ 206 if (ch == Pad64) 209 pos = strchr(Base64, ch); 267 if (ch == Pad64) { /* We got a pad char. */ 268 ch = (unsigned char)*src++; /* Skip it, get next. */ 276 for (; ch != '\0'; ch = (unsigned char)*src++) 277 if (!isspace(ch)) 280 if (ch != Pad64) [all …]
|
D | inet_pton.c | 76 int saw_digit, octets, ch; in inet_pton4() local 82 while ((ch = *src++) != '\0') { in inet_pton4() 85 if ((pch = strchr(digits, ch)) != NULL) { in inet_pton4() 96 } else if (ch == '.' && saw_digit) { in inet_pton4() 130 int ch, saw_xdigit, count_xdigit; in inet_pton6() local 143 while ((ch = *src++) != '\0') { in inet_pton6() 146 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) in inet_pton6() 147 pch = strchr((xdigits = xdigits_u), ch); in inet_pton6() 159 if (ch == ':') { in inet_pton6() 178 if (ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6()
|
/bionic/libm/ |
D | digittoint.c | 32 __LIBC_HIDDEN__ int digittoint(char ch) { in digittoint() argument 33 int d = ch - '0'; in digittoint() 37 d = ch - 'a'; in digittoint() 41 d = ch - 'A'; in digittoint()
|
D | freebsd-compat.h | 38 int digittoint(char ch);
|
/bionic/libc/bionic/ |
D | mbrtoc32.cpp | 57 uint8_t ch; in mbrtoc32() local 58 if (mbsinit(state) && (((ch = static_cast<uint8_t>(*s)) & ~0x7f) == 0)) { in mbrtoc32() 61 *pc32 = ch; in mbrtoc32() 63 return (ch != '\0' ? 1 : 0); in mbrtoc32() 82 ch = bytes_so_far > 0 ? mbstate_get_byte(state, 0) : static_cast<uint8_t>(*s); in mbrtoc32() 83 if ((ch & 0x80) == 0) { in mbrtoc32() 87 } else if ((ch & 0xe0) == 0xc0) { in mbrtoc32() 91 } else if ((ch & 0xf0) == 0xe0) { in mbrtoc32() 95 } else if ((ch & 0xf8) == 0xf0) { in mbrtoc32()
|
D | strrchr.cpp | 32 char* strrchr(const char* p, int ch) { in strrchr() argument 33 return __strrchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE); in strrchr()
|
D | strchr.cpp | 32 char* strchr(const char* p, int ch) { in strchr() argument 33 return __strchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE); in strchr()
|
D | strchrnul.cpp | 17 extern "C" const char* strchrnul(const char* s, int ch) { in strchrnul() argument 18 while (*s && *s != ch) { in strchrnul()
|
D | iconv.cpp | 301 void Out16(char* dst, char16_t ch, bool swap) { in Out16() 302 if (swap) ch = __swap16(ch); in Out16() 303 dst[0] = ch; in Out16() 304 dst[1] = ch >> 8; in Out16() 308 void Out32(char32_t ch, bool swap) { in Out32() 309 if (swap) ch = __swap32(ch); in Out32() 310 buf[0] = ch; in Out32() 311 buf[1] = ch >> 8; in Out32() 312 buf[2] = ch >> 16; in Out32() 313 buf[3] = ch >> 24; in Out32()
|
D | ndk_cruft.cpp | 133 static inline int digitval(int ch) { in digitval() argument 136 d = (unsigned)(ch - '0'); in digitval() 139 d = (unsigned)(ch - 'a'); in digitval() 142 d = (unsigned)(ch - 'A'); in digitval() 326 char* index(const char* str, int ch) { in index() argument 327 return const_cast<char*>(strchr(str, ch)); in index()
|
/bionic/libc/arch-mips/string/ |
D | strchr.c | 57 if (a.b.B##i != ch) { \ 67 return do_bytes(w + cnt, ch); \ 72 do_bytes (const op_t* w, unsigned char ch) in do_bytes() argument 99 const unsigned char ch = c; in strchr() local 105 for ( ; *p != ch && ((size_t) p % op_size) != 0; p++) in strchr() 109 if (*p != ch) { in strchr() 112 mask_c = ch | (ch << 8); in strchr()
|
D | memchr.c | 76 do_bytes (const op_t* w, unsigned char ch) in do_bytes() argument 79 for (; *p != ch; ++p); in do_bytes() 86 return do_bytes(in, ch); \ 109 unsigned char ch = (unsigned char) c_in; in memchr() local 115 if (*p == ch) in memchr() 121 mask_c = ch | (ch << 8); in memchr() 180 if (*p == ch) in memchr()
|
/bionic/libm/upstream-netbsd/lib/libm/complex/ |
D | ccosl.c | 41 long double ch, sh; in ccosl() local 43 _cchshl(cimagl(z), &ch, &sh); in ccosl() 44 w = cosl(creall(z)) * ch - (sinl(creall(z)) * sh) * I; in ccosl()
|
D | csinl.c | 41 long double ch, sh; in csinl() local 43 _cchshl(cimagl(z), &ch, &sh); in csinl() 44 w = sinl(creall(z)) * ch + (cosl(creall(z)) * sh) * I; in csinl()
|
/bionic/libc/stdio/ |
D | vfwprintf.cpp | 152 int ch; in FUNCTION_NAME() local 153 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; in FUNCTION_NAME() 160 if (ch == '\0') goto done; in FUNCTION_NAME() 171 ch = *fmt++; in FUNCTION_NAME() 173 switch (ch) { in FUNCTION_NAME() 207 if ((ch = *fmt++) == '*') { in FUNCTION_NAME() 213 while (is_digit(ch)) { in FUNCTION_NAME() 214 APPEND_DIGIT(n, ch); in FUNCTION_NAME() 215 ch = *fmt++; in FUNCTION_NAME() 217 if (ch == '$') { in FUNCTION_NAME() [all …]
|
D | vfprintf.cpp | 163 int ch; in FUNCTION_NAME() local 164 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; in FUNCTION_NAME() 171 if (ch == '\0') goto done; in FUNCTION_NAME() 182 ch = *fmt++; in FUNCTION_NAME() 184 switch (ch) { in FUNCTION_NAME() 218 if ((ch = *fmt++) == '*') { in FUNCTION_NAME() 224 while (is_digit(ch)) { in FUNCTION_NAME() 225 APPEND_DIGIT(n, ch); in FUNCTION_NAME() 226 ch = *fmt++; in FUNCTION_NAME() 228 if (ch == '$') { in FUNCTION_NAME() [all …]
|
D | printf_common.h | 315 int ch; /* character from fmt */ in __find_arguments() local 394 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; in __find_arguments() 395 if (ch == '\0') goto done; in __find_arguments() 401 ch = *fmt++; in __find_arguments() 403 switch (ch) { in __find_arguments() 415 if ((ch = *fmt++) == '*') { in __find_arguments() 419 while (is_digit(ch)) { in __find_arguments() 420 ch = *fmt++; in __find_arguments() 436 APPEND_DIGIT(n, ch); in __find_arguments() 437 ch = *fmt++; in __find_arguments() [all …]
|
/bionic/libc/arch-x86_64/string/ |
D | sse2-strcpy-slm.S | 1078 xor %ch, %ch 1079 movb %ch, (%rdi) 1091 xor %ch, %ch 1092 movb %ch, 1(%rdi) 1104 xor %ch, %ch 1105 movb %ch, 2(%rdi) 1119 xor %ch, %ch 1120 movb %ch, 3(%rdi) 1132 xor %ch, %ch 1133 movb %ch, 4(%rdi) [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | fgetwc.c | 63 int ch = __sgetc(fp); in __fgetwc_unlock() local 65 if (ch == EOF) { in __fgetwc_unlock() 69 c = ch; in __fgetwc_unlock()
|
/bionic/libc/async_safe/ |
D | async_safe_log.cpp | 143 int ch = *p; in parse_decimal() local 144 unsigned d = static_cast<unsigned>(ch - '0'); in parse_decimal() 168 char ch; in format_unsigned() local 170 ch = '0' + d; in format_unsigned() 172 ch = (caps ? 'A' : 'a') + (d - 10); in format_unsigned() 174 *p++ = ch; in format_unsigned() 189 char ch = buf[i]; in format_unsigned() local 191 buf[j] = ch; in format_unsigned() 216 static void SendRepeat(Out& o, char ch, int count) { in SendRepeat() argument 218 memset(pad, ch, sizeof(pad)); in SendRepeat()
|
/bionic/libc/arch-x86/atom/string/ |
D | sse2-strrchr-atom.S | 311 mov %ch, %dh 314 test $0x01, %ch 316 test $0x02, %ch 318 test $0x04, %ch 332 test $0x10, %ch 334 test $0x20, %ch 336 test $0x40, %ch 642 mov %ch, %dh 645 test $0x01, %ch 647 test $0x02, %ch [all …]
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | engine.c | 134 static states step(struct re_guts *g, sopno start, sopno stop, states bef, int ch, states aft); 145 static void print(struct match *m, char *caption, states st, int ch, FILE *d); 151 static char *pchar(int ch); 972 int ch, /* character or NONCHAR code */ in step() argument 992 assert(!NONCHAR(ch) || ch != (char)OPND(s)); in step() 993 if (ch == (char)OPND(s)) in step() 997 if (ch == BOL || ch == BOLEOL) in step() 1001 if (ch == EOL || ch == BOLEOL) in step() 1005 if (ch == BOW) in step() 1009 if (ch == EOW) in step() [all …]
|