/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | regex2.h | 134 CHIN1(cset *cs, wint_t ch) in CHIN1() argument 138 assert(ch >= 0); in CHIN1() 139 if (ch < NC) in CHIN1() 140 return (((cs->bmp[(unsigned)ch >> 3] & (1 << (ch & 7))) != 0) ^ in CHIN1() 144 if (ch == towlower(cs->wides[i]) || in CHIN1() 145 ch == towupper(cs->wides[i])) in CHIN1() 147 } else if (ch == cs->wides[i]) in CHIN1() 151 if (cs->ranges[i].min <= ch && ch <= cs->ranges[i].max) in CHIN1() 154 if (iswctype(ch, cs->types[i])) in CHIN1() 160 CHIN(cset *cs, wint_t ch) in CHIN() argument [all …]
|
D | regcomp.c | 159 static bool may_escape(struct parse *p, const wint_t ch); 160 static wint_t othercase(wint_t ch); 161 static void bothcases(struct parse *p, wint_t ch); 162 static void ordinary(struct parse *p, wint_t ch); 168 static void CHadd(struct parse *p, cset *cs, wint_t ch); 1104 wint_t ch; in p_bracket() local 1141 if ((ch = singleton(cs)) != OUT) { /* optimize singleton sets */ in p_bracket() 1142 ordinary(p, ch); in p_bracket() 1422 may_escape(struct parse *p, const wint_t ch) argument 1427 if (isalpha(ch) || ch == '\'' || ch == '`') [all …]
|
D | engine.c | 117 static states step(struct re_guts *g, sopno start, sopno stop, states bef, wint_t ch, states aft, i… 133 static void print(struct match *m, const char *caption, states st, int ch, FILE *d); 139 static const char *pchar(int ch); 1039 wint_t ch, /* character or NONCHAR code */ in step() argument 1060 assert(!NONCHAR(ch) || ch != OPND(s)); in step() 1061 if (ch == (wint_t)OPND(s)) in step() 1065 if ((ch == BOL || ch == BOLEOL) && (sflags & SBOS) != 0) in step() 1069 if ((ch == EOL || ch == BOLEOL) && (sflags & SEOS) != 0) in step() 1073 if (ch == BOL || ch == BOLEOL) in step() 1077 if (ch == EOL || ch == BOLEOL) in step() [all …]
|
/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 | 187 int tarindex, state, ch; in b64_pton() local 194 while ((ch = (unsigned char)*src++) != '\0') { in b64_pton() 195 if (isspace(ch)) /* Skip whitespace anywhere. */ in b64_pton() 198 if (ch == Pad64) in b64_pton() 201 pos = strchr(Base64, ch); in b64_pton() 259 if (ch == Pad64) { /* We got a pad char. */ in b64_pton() 260 ch = (unsigned char)*src++; /* Skip it, get next. */ in b64_pton() 268 for (; ch != '\0'; ch = (unsigned char)*src++) in b64_pton() 269 if (!isspace(ch)) in b64_pton() 272 if (ch != Pad64) in b64_pton() [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/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/bionic/ |
D | mbrtoc32.cpp | 57 uint8_t ch; in mbrtoc32() local 58 if (mbstate_is_initial(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() 84 if ((ch & 0xe0) == 0xc0) { in mbrtoc32() 88 } else if ((ch & 0xf0) == 0xe0) { in mbrtoc32() 92 } else if ((ch & 0xf8) == 0xf0) { in mbrtoc32()
|
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 | 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 | 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 | strchrnul.cpp | 17 extern "C" const char* strchrnul(const char* s, int ch) { in strchrnul() argument 18 while (*s && *s != ch) { in strchrnul()
|
D | ndk_cruft.cpp | 134 static inline int digitval(int ch) { in digitval() argument 137 d = (unsigned)(ch - '0'); in digitval() 140 d = (unsigned)(ch - 'a'); in digitval() 143 d = (unsigned)(ch - 'A'); in digitval() 327 char* index(const char* str, int ch) { in index() argument 328 return const_cast<char*>(strchr(str, ch)); in index()
|
/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()
|
/bionic/libm/upstream-netbsd/lib/libm/complex/ |
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()
|
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()
|
/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 | 154 int ch = *p; in parse_decimal() local 155 unsigned d = static_cast<unsigned>(ch - '0'); in parse_decimal() 179 char ch; in format_unsigned() local 181 ch = '0' + d; in format_unsigned() 183 ch = (caps ? 'A' : 'a') + (d - 10); in format_unsigned() 185 *p++ = ch; in format_unsigned() 200 char ch = buf[i]; in format_unsigned() local 202 buf[j] = ch; in format_unsigned() 227 static void SendRepeat(Out& o, char ch, int count) { in SendRepeat() argument 229 memset(pad, ch, sizeof(pad)); in SendRepeat()
|
/bionic/libc/arch-x86/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/kernel/uapi/linux/usb/ |
D | audio.h | 163 #define UAC_DT_FEATURE_UNIT_SIZE(ch) (7 + ((ch) + 1) * 2) argument 164 …ch) struct uac_feature_unit_descriptor_ ##ch { __u8 bLength; __u8 bDescriptorType; __u8 bDescripto… argument
|