/bionic/libc/bionic/ |
H A D | strchrnul.cpp | 17 extern "C" const char* strchrnul(const char* s, int ch) { argument 18 while (*s && *s != ch) {
|
H A D | strchr.cpp | 33 char* strchr(const char* p, int ch) { argument 34 return __strchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE);
|
H A D | strrchr.cpp | 33 char* strrchr(const char* p, int ch) { argument 34 return __strrchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE);
|
H A D | __strchr_chk.cpp | 33 extern "C" char* __strchr_chk(const char* p, int ch, size_t s_len) { argument 38 if (*p == static_cast<char>(ch)) {
|
H A D | __strrchr_chk.cpp | 33 extern "C" char* __strrchr_chk(const char *p, int ch, size_t s_len) { argument 38 if (*p == (char) ch) {
|
H A D | mbrtoc32.cpp | 57 uint8_t ch; local 58 if (mbsinit(state) && (((ch = static_cast<uint8_t>(*s)) & ~0x7f) == 0)) { 61 *pc32 = ch; 63 return (ch != '\0' ? 1 : 0); 82 ch = bytes_so_far > 0 ? mbstate_get_byte(state, 0) : static_cast<uint8_t>(*s); 83 if ((ch & 0x80) == 0) { 87 } else if ((ch & 0xe0) == 0xc0) { 91 } else if ((ch & 0xf0) == 0xe0) { 95 } else if ((ch & 0xf8) == 0xf0) {
|
H A D | ndk_cruft.cpp | 130 static inline int digitval(int ch) { argument 133 d = (unsigned)(ch - '0'); 136 d = (unsigned)(ch - 'a'); 139 d = (unsigned)(ch - 'A'); 321 char* index(const char* str, int ch) { argument 322 return strchr(str, ch);
|
H A D | libc_logging.cpp | 150 int ch = *p; local 151 unsigned d = static_cast<unsigned>(ch - '0'); 175 char ch; local 177 ch = '0' + d; 179 ch = (caps ? 'A' : 'a') + (d - 10); 181 *p++ = ch; 196 char ch = buf[i]; local 198 buf[j] = ch; 223 static void SendRepeat(Out& o, char ch, int count) { argument 225 memset(pad, ch, sizeo [all...] |
/bionic/libm/ |
H A D | digittoint.c | 32 __LIBC_HIDDEN__ int digittoint(char ch) { argument 33 int d = ch - '0'; 37 d = ch - 'a'; 41 d = ch - 'A';
|
H A D | freebsd-compat.h | 32 int digittoint(char ch);
|
/bionic/libc/dns/nameser/ |
H A D | ns_ttl.c | 84 int ch; local 86 for (p = odst; (ch = *p) != '\0'; p++) 87 if (isascii(ch) && isupper(ch)) 88 *p = tolower(ch); 99 int ch, digits, dirty; local 105 while ((ch = *src++) != '\0') { 106 if (!isascii(ch) || !isprint(ch)) 108 if (isdigit(ch)) { [all...] |
H A D | ns_name.c | 882 special(int ch) { argument 883 switch (ch) { 907 printable(int ch) { argument 908 return (ch > 0x20 && ch < 0x7f); 916 mklower(int ch) { argument 917 if (ch >= 0x41 && ch <= 0x5A) 918 return (ch + 0x20); 919 return (ch); [all...] |
/bionic/libc/dns/resolv/ |
H A D | res_comp.c | 172 int pch = PERIOD, ch = *dn++; local 174 while (ch != '\0') { 177 if (periodchar(ch)) { 180 if (!borderchar(ch)) 183 if (!borderchar(ch)) 186 if (!middlechar(ch)) 189 pch = ch, ch = nch; 215 int ch, escaped = 0; local 222 while ((ch 243 int ch; local [all...] |
/bionic/libc/dns/net/ |
H A D | base64.c | 221 int state, ch; local 230 while ((ch = (u_char) *src++) != '\0') { 231 if (isspace(ch)) /* Skip whitespace anywhere. */ 234 if (ch == Pad64) 237 pos = strchr(Base64, ch); 293 if (ch == Pad64) { /* We got a pad char. */ 294 ch = *src++; /* Skip it, get next. */ 302 for (; ch != '\0'; ch = (u_char) *src++) 303 if (!isspace(ch)) [all...] |
/bionic/libc/upstream-openbsd/lib/libc/net/ |
H A D | inet_pton.c | 76 int saw_digit, octets, ch; local 82 while ((ch = *src++) != '\0') { 85 if ((pch = strchr(digits, ch)) != NULL) { 96 } else if (ch == '.' && saw_digit) { 130 int ch, saw_xdigit, count_xdigit; local 143 while ((ch = *src++) != '\0') { 146 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) 147 pch = strchr((xdigits = xdigits_u), ch); 159 if (ch == ':') { 178 if (ch [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | fgetwc.c | 63 int ch = __sgetc(fp); local 65 if (ch == EOF) { 69 c = ch;
|
H A D | vfwprintf.c | 282 wchar_t ch; /* character from fmt */ local 470 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) 479 if (ch == '\0') 490 rflag: ch = *fmt++; 491 reswitch: switch (ch) { 528 if ((ch = *fmt++) == '*') { 534 while (is_digit(ch)) { 535 APPEND_DIGIT(n, ch); 536 ch 1112 int ch; /* character from fmt */ local [all...] |
H A D | vfprintf.c | 272 int ch; /* character from fmt */ local 518 rflag: ch = *fmt++; 519 reswitch: switch (ch) { 556 if ((ch = *fmt++) == '*') { 562 while (is_digit(ch)) { 563 APPEND_DIGIT(n, ch); 564 ch = *fmt++; 566 if (ch == '$') { 592 APPEND_DIGIT(n, ch); 593 ch 1143 int ch; /* character from fmt */ local [all...] |
/bionic/libc/arch-x86_64/string/ |
H A 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, [all...] |
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
H A 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); 955 == states bef, int ch, states aft); 972 int ch, /* character or NONCHAR code */ 992 assert(!NONCHAR(ch) || ch != (char)OPND(s)); 993 if (ch == (char)OPND(s)) 997 if (ch == BOL || ch 967 step( struct re_guts *g, sopno start, sopno stop, states bef, int ch, states aft) argument 1091 print( struct match *m, char *caption, states st, int ch, FILE *d) argument 1165 pchar( int ch) argument [all...] |
H A 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); 1020 == static int othercase(int ch); 1022 static int /* if no counterpart, return ch */ 1024 int ch) 1026 assert(isalpha(ch)); 1027 if (isupper(ch)) 1028 return(tolower(ch)); 1029 else if (islower(ch)) 1023 othercase( int ch) argument 1042 bothcases( struct parse *p, int ch) argument 1072 ordinary( struct parse *p, int ch) argument [all...] |
/bionic/libc/kernel/uapi/linux/usb/ |
H A D | audio.h | 190 #define UAC_DT_FEATURE_UNIT_SIZE(ch) (7 + ((ch) + 1) * 2) 191 #define DECLARE_UAC_FEATURE_UNIT_DESCRIPTOR(ch) struct uac_feature_unit_descriptor_ ##ch { __u8 bLength; __u8 bDescriptorType; __u8 bDescriptorSubtype; __u8 bUnitID; __u8 bSourceID; __u8 bControlSize; __le16 bmaControls[ch + 1]; __u8 iFeature; \
|
/bionic/libc/arch-x86/atom/string/ |
H A 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...] |
H A D | sse2-strchr-atom.S | 194 mov %dl, %ch 195 and $15, %ch 239 mov %dh, %ch 240 and $15, %ch
|
/bionic/libc/kernel/uapi/sound/ |
H A D | hdspm.h | 171 struct hdspm_channelfader ch[HDSPM_MIXER_CHANNELS]; member in struct:hdspm_mixer
|