Home
last modified time | relevance | path

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

/libc/inet/
A Dether_addr.c38 char ch = *asc++; in ether_aton_r() local
40 if (ch < 0x20) in ether_aton_r()
43 ch |= 0x20; in ether_aton_r()
44 if ((ch < '0' || ch > '9') && (ch < 'a' || ch > 'f')) in ether_aton_r()
46 number = !(ch > '9') ? (ch - '0') : (ch - 'a' + 10); in ether_aton_r()
48 ch = *asc++; in ether_aton_r()
55 ch |= 0x20; /* cheap tolower() */ in ether_aton_r()
56 if ((ch < '0' || ch > '9') && (ch < 'a' || ch > 'f')) in ether_aton_r()
58 number = (number << 4) + (!(ch > '9') ? (ch - '0') : (ch - 'a' + 10)); in ether_aton_r()
61 ch = *asc++; in ether_aton_r()
[all …]
A Dntop.c200 int saw_digit, octets, ch; in inet_pton4() local
206 while ((ch = *src++) != '\0') { in inet_pton4()
208 if (ch >= '0' && ch <= '9') { in inet_pton4()
209 u_int new = *tp * 10 + (ch - '0'); in inet_pton4()
219 } else if (ch == '.' && saw_digit) { in inet_pton4()
255 int ch, saw_xdigit; in inet_pton6() local
269 while ((ch = *src++) != '\0') { in inet_pton6()
273 pch = strchr(xdigits, (ch | 0x20)); in inet_pton6()
282 if (ch == ':') { in inet_pton6()
300 if (ch == '.' && ((tp + 4) <= endp) && in inet_pton6()
A Dresolv.c2847 return (ch > 0x20 && ch < 0x7f); in libc_hidden_weak()
2854 switch (ch) { in special()
3353 if (ch >= 0x41 && ch <= 0x5A) in mklower()
3354 return (ch + 0x20); in mklower()
3356 return ch; in mklower()
3993 if (ch == Pad64) in b64_pton()
4059 for ((void)NULL; ch != '\0'; ch = *src++) in b64_pton()
4060 if (!isspace(ch)) in b64_pton()
4063 if (ch != Pad64) in b64_pton()
4074 for ((void)NULL; ch != '\0'; ch = *src++) in b64_pton()
[all …]
/libc/string/generic/
A Dstrsep.c36 char ch = delim[0]; in strsep() local
38 if (ch == '\0') in strsep()
42 if (*begin == ch) in strsep()
47 end = strchr (begin + 1, ch); in strsep()
/libc/string/x86_64/
A Dstrchr.S245 testb %ch, %ch /* is second byte C? */
247 cmpb %dl, %ch /* is second byte NUL? */
258 testb %ch, %ch /* is fourth byte C? */
260 cmpb %dl, %ch /* is fourth byte NUL? */
271 testb %ch, %ch /* is sixth byte C? */
273 cmpb %dl, %ch /* is sixth byte NUL? */
A Dstrlen.S113 testb %ch, %ch /* is second byte NUL? */
131 testb %ch, %ch /* is second byte NUL? */
A Dstrcat.S117 testb %ch, %ch /* is second byte NUL? */
135 testb %ch, %ch /* is second byte NUL? */
/libc/string/frv/
A Dmemset.S28 # void *memset(void *p, char ch, size_t count)
/libc/misc/regex/
A Dregex_internal.h419 #define IS_WORD_CHAR(ch) (isalnum (ch) || (ch) == '_') argument
420 #define IS_NEWLINE(ch) ((ch) == NEWLINE_CHAR) argument
421 #define IS_WIDE_WORD_CHAR(ch) (iswalnum (ch) || (ch) == L'_') argument
422 #define IS_WIDE_NEWLINE(ch) ((ch) == WIDE_NEWLINE_CHAR) argument
621 unsigned char ch; member
A Dregex_internal.c220 int i, ch; in build_wcs_buffer() local
360 int i, ch; in build_wcs_upper_buffer() local
450 ch = pstr->trans [ch]; in build_wcs_upper_buffer()
523 ch = pstr->trans[ch]; in build_upper_buffer()
524 if (islower (ch)) in build_upper_buffer()
527 pstr->mbs[char_idx] = ch; in build_upper_buffer()
741 int ch, off; in internal_function() local
770 return ch; in internal_function()
783 int off, ch; in internal_function() local
798 if (! isascii (ch)) in internal_function()
[all …]
A Dregcomp.c281 fastmap[ch] = 1; in libc_hidden_def()
328 int i, ch; in re_compile_fastmap_iter() local
859 int i, j, ch; in init_dfa() local
873 if (isascii (ch) && wch != ch) in init_dfa()
894 int i, j, ch; in init_word_char() local
898 if (isalnum (ch) || ch == '_') in init_word_char()
2636 unsigned int ch; in build_range_exp() local
2646 for (ch = 0; ch < SBC_MAX; ++ch) in build_range_exp()
2647 if (start_ch <= ch && ch <= end_ch) in build_range_exp()
2862 for (ch = 0; ch < SBC_MAX; ch++) in parse_bracket_exp()
[all …]
A Dregexec.c562 int sb, ch; in re_search_internal() local
680 if (!fastmap[t ? t[ch] : ch]) in re_search_internal()
692 if (fastmap[t ? t[ch] : ch]) in re_search_internal()
722 if (fastmap[ch]) in re_search_internal()
2169 unsigned char ch; in transit_state() local
2194 return trtable[ch]; in transit_state()
2207 return trtable[ch]; in transit_state()
3374 trtable[ch] = dest_states[j]; in build_trtable()
3930 unsigned char ch; in check_node_accept() local
3935 if (node->opr.c != ch) in check_node_accept()
[all …]
/libc/stdio/
A Dold_vfprintf.c643 unsigned char ch; in vfprintf() local
647 ch = ' '; in vfprintf()
650 ch = flag[FLAG_PLUS]; /* sign */ in vfprintf()
658 ch = '0'; in vfprintf()
661 ch = *p++; /* main field */ in vfprintf()
665 PUTC(ch, op); in vfprintf()
/libc/misc/wordexp/
A Dwordexp.c85 size_t * maxlen, char ch) in w_addchar() argument
99 buffer[*actlen] = ch; in w_addchar()
2199 char ch = words[words_offset]; in libc_hidden_def() local
2202 if (strchr("\n|&;<>(){}", ch)) { in libc_hidden_def()
2209 word = w_addchar(word, &word_length, &max_length, ch); in libc_hidden_def()
/libc/misc/ftw/
A Dftw.c663 char ch = data.dirbuf[data.ftw.base - 1]; in ftw_startup() local
666 data.dirbuf[data.ftw.base - 1] = ch; in ftw_startup()

Completed in 62 milliseconds