/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 …]
|
D | ns_name.c | 882 special(int ch) { in special() argument 883 switch (ch) { in special() 907 printable(int ch) { in printable() argument 908 return (ch > 0x20 && ch < 0x7f); in printable() 916 mklower(int ch) { in mklower() argument 917 if (ch >= 0x41 && ch <= 0x5A) in mklower() 918 return (ch + 0x20); in mklower() 919 return (ch); in mklower()
|
/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 | 32 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 | strchrnul.cpp | 17 extern "C" const char* strchrnul(const char* s, int ch) { in strchrnul() argument 18 while (*s && *s != ch) { in strchrnul()
|
D | strchr.cpp | 33 char* strchr(const char* p, int ch) { in strchr() argument 34 return __strchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE); in strchr()
|
D | strrchr.cpp | 33 char* strrchr(const char* p, int ch) { in strrchr() argument 34 return __strrchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE); in strrchr()
|
D | ndk_cruft.cpp | 131 static inline int digitval(int ch) { in digitval() argument 134 d = (unsigned)(ch - '0'); in digitval() 137 d = (unsigned)(ch - 'a'); in digitval() 140 d = (unsigned)(ch - 'A'); in digitval() 324 char* index(const char* str, int ch) { in index() argument 325 return strchr(str, ch); in index()
|
D | libc_logging.cpp | 146 int ch = *p; in parse_decimal() local 147 unsigned d = static_cast<unsigned>(ch - '0'); in parse_decimal() 171 char ch; in format_unsigned() local 173 ch = '0' + d; in format_unsigned() 175 ch = (caps ? 'A' : 'a') + (d - 10); in format_unsigned() 177 *p++ = ch; in format_unsigned() 192 char ch = buf[i]; in format_unsigned() local 194 buf[j] = ch; in format_unsigned() 219 static void SendRepeat(Out& o, char ch, int count) { in SendRepeat() argument 221 memset(pad, ch, sizeof(pad)); in SendRepeat()
|
/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/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()
|
D | vfwprintf.c | 282 wchar_t ch; /* character from fmt */ in __vfwprintf() local 470 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) in __vfwprintf() 479 if (ch == '\0') in __vfwprintf() 490 rflag: ch = *fmt++; in __vfwprintf() 491 reswitch: switch (ch) { in __vfwprintf() 528 if ((ch = *fmt++) == '*') { in __vfwprintf() 534 while (is_digit(ch)) { in __vfwprintf() 535 APPEND_DIGIT(n, ch); in __vfwprintf() 536 ch = *fmt++; in __vfwprintf() 538 if (ch == '$') { in __vfwprintf() [all …]
|
D | vfprintf.c | 272 int ch; /* character from fmt */ in __vfprintf() local 518 rflag: ch = *fmt++; in __vfprintf() 519 reswitch: switch (ch) { in __vfprintf() 556 if ((ch = *fmt++) == '*') { in __vfprintf() 562 while (is_digit(ch)) { in __vfprintf() 563 APPEND_DIGIT(n, ch); in __vfprintf() 564 ch = *fmt++; in __vfprintf() 566 if (ch == '$') { in __vfprintf() 592 APPEND_DIGIT(n, ch); in __vfprintf() 593 ch = *fmt++; in __vfprintf() [all …]
|
/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 …]
|
D | regcomp.c | 140 static int othercase(int ch); 141 static void bothcases(struct parse *p, int ch); 142 static void ordinary(struct parse *p, int ch); 1024 int ch) in othercase() argument 1026 assert(isalpha(ch)); in othercase() 1027 if (isupper(ch)) in othercase() 1028 return(tolower(ch)); in othercase() 1029 else if (islower(ch)) in othercase() 1030 return(toupper(ch)); in othercase() 1032 return(ch); in othercase() [all …]
|
/bionic/libc/kernel/uapi/linux/usb/ |
D | audio.h | 190 #define UAC_DT_FEATURE_UNIT_SIZE(ch) (7 + ((ch) + 1) * 2) argument 191 …ch) struct uac_feature_unit_descriptor_ ##ch { __u8 bLength; __u8 bDescriptorType; __u8 bDescripto… argument
|