Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 20 of 20) sorted by relevance

/bionic/libc/netbsd/resolv/
Dres_comp.c172 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 …]
Dres_init.c128 #define ISSORTMASK(ch) (strchr(sort_mask, ch) != NULL) argument
/bionic/libm/
Ddigittoint.c32 __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/libc/netbsd/nameser/
Dns_ttl.c89 int ch; in ns_format_ttl() local
91 for (p = odst; (ch = *p) != '\0'; p++) in ns_format_ttl()
92 if (isascii(ch) && isupper(ch)) in ns_format_ttl()
93 *p = tolower(ch); in ns_format_ttl()
103 int ch, digits, dirty; in ns_parse_ttl() local
109 while ((ch = *src++) != '\0') { in ns_parse_ttl()
110 if (!isascii(ch) || !isprint(ch)) in ns_parse_ttl()
112 if (isdigit(ch)) { in ns_parse_ttl()
114 tmp += (ch - '0'); in ns_parse_ttl()
120 if (islower(ch)) in ns_parse_ttl()
[all …]
Dns_name.c688 special(int ch) { in special() argument
689 switch (ch) { in special()
713 printable(int ch) { in printable() argument
714 return (ch > 0x20 && ch < 0x7f); in printable()
722 mklower(int ch) { in mklower() argument
723 if (ch >= 0x41 && ch <= 0x5A) in mklower()
724 return (ch + 0x20); in mklower()
725 return (ch); in mklower()
/bionic/libc/string/
Dstrchr.c35 __strchr_chk(const char *p, int ch, size_t s_len) in __strchr_chk() argument
40 if (*p == (char) ch) in __strchr_chk()
49 strchr(const char *p, int ch) { in strchr() argument
50 return __strchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE); in strchr()
Dstrrchr.c35 __strrchr_chk(const char *p, int ch, size_t s_len) in __strrchr_chk() argument
42 if (*p == (char) ch) in __strrchr_chk()
51 strrchr(const char *p, int ch) in strrchr() argument
53 return __strrchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE); in strrchr()
Dindex.c34 index(const char *p, int ch) in index() argument
37 if (*p == (char) ch) in index()
/bionic/libc/netbsd/net/
Dbase64.c221 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))
306 if (ch != Pad64)
[all …]
/bionic/libc/stdio/
Dvfprintf.c173 int ch; /* character from fmt */ in __vfprintf() local
368 rflag: ch = *fmt++; in __vfprintf()
369 reswitch: switch (ch) { in __vfprintf()
401 if ((ch = *fmt++) == '*') { in __vfprintf()
407 while (is_digit(ch)) { in __vfprintf()
408 n = 10 * n + to_digit(ch); in __vfprintf()
409 ch = *fmt++; in __vfprintf()
411 if (ch == '$') { in __vfprintf()
434 n = 10 * n + to_digit(ch); in __vfprintf()
435 ch = *fmt++; in __vfprintf()
[all …]
/bionic/libc/bionic/
Dstrntoumax.c32 static inline int digitval(int ch) in digitval() argument
36 d = (unsigned)(ch - '0'); in digitval()
39 d = (unsigned)(ch - 'a'); in digitval()
42 d = (unsigned)(ch - 'A'); in digitval()
Dlibc_logging.cpp139 int ch = *p; in parse_decimal() local
140 unsigned d = (unsigned)(ch - '0'); in parse_decimal()
164 char ch; in format_unsigned() local
166 ch = '0' + d; in format_unsigned()
168 ch = (caps ? 'A' : 'a') + (d - 10); in format_unsigned()
170 *p++ = ch; in format_unsigned()
185 char ch = buf[i]; in format_unsigned() local
187 buf[j] = ch; in format_unsigned()
212 static void SendRepeat(Out& o, char ch, int count) { in SendRepeat() argument
214 memset(pad, ch, sizeof(pad)); in SendRepeat()
Dmalloc_debug_qemu.cpp552 char ch; in test_access_violation() local
560 ch = *prefix; in test_access_violation()
561 ch = *suffix; in test_access_violation()
/bionic/libc/upstream-netbsd/libc/inet/
Dinet_pton.c229 int ch, seen_xdigits; in inet_pton6() local
245 while ((ch = *src++) != '\0') { in inet_pton6()
248 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) in inet_pton6()
249 pch = strchr((xdigits = xdigits_u), ch); in inet_pton6()
257 if (ch == ':') { in inet_pton6()
274 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_pton6()
/bionic/libc/upstream-netbsd/libc/regex/
Dengine.c134 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 …]
Dregcomp.c140 static int othercase(int ch);
141 static void bothcases(struct parse *p, int ch);
142 static void ordinary(struct parse *p, int ch);
1025 int ch) in othercase() argument
1027 assert(isalpha(ch)); in othercase()
1028 if (isupper(ch)) in othercase()
1029 return(tolower(ch)); in othercase()
1030 else if (islower(ch)) in othercase()
1031 return(toupper(ch)); in othercase()
1033 return(ch); in othercase()
[all …]
/bionic/libc/unistd/
Dsyslog.c109 char ch, *p, *t; in vsyslog_r() local
194 for (t = fmt_cpy, fmt_left = FMT_LEN; (ch = *fmt); ++fmt) { in vsyslog_r()
195 if (ch == '%' && fmt[1] == 'm') { in vsyslog_r()
210 } else if (ch == '%' && fmt[1] == '%' && fmt_left > 2) { in vsyslog_r()
217 *t++ = ch; in vsyslog_r()
/bionic/tests/
Dstring_test.cpp620 char ch = random () & 255; in TEST() local
625 memset(state.ptr1, ~ch, state.MAX_LEN); in TEST()
630 state.ptr1[k] = ch; in TEST()
633 ASSERT_TRUE(memset(state.ptr2 + pos, ch, state.len[i]) == state.ptr2 + pos); in TEST()
/bionic/libc/arch-x86/string/
Dssse3-strcmp-latest.S2062 test $0x01, %ch
2065 test $0x02, %ch
2068 test $0x04, %ch
2071 test $0x08, %ch
2074 test $0x10, %ch
2077 test $0x20, %ch
2080 test $0x40, %ch
Dssse3-memcmp3-new.S1938 cmp %bh, %ch