Lines Matching refs:ch
81 int n, ch, tmp = 0, dirty, bits; in inet_net_pton_ipv4() local
84 ch = *src++; in inet_net_pton_ipv4()
85 if (ch == '0' && (src[0] == 'x' || src[0] == 'X') in inet_net_pton_ipv4()
93 while ((ch = *src++) != '\0' && ISASCII(ch) && ISXDIGIT(ch)) { in inet_net_pton_ipv4()
94 if (ISUPPER(ch)) in inet_net_pton_ipv4()
95 ch = tolower(ch); in inet_net_pton_ipv4()
96 n = aresx_sztosi(strchr(xdigits, ch) - xdigits); in inet_net_pton_ipv4()
113 } else if (ISASCII(ch) && ISDIGIT(ch)) { in inet_net_pton_ipv4()
118 n = aresx_sztosi(strchr(digits, ch) - digits); in inet_net_pton_ipv4()
123 } while ((ch = *src++) != '\0' && in inet_net_pton_ipv4()
124 ISASCII(ch) && ISDIGIT(ch)); in inet_net_pton_ipv4()
128 if (ch == '\0' || ch == '/') in inet_net_pton_ipv4()
130 if (ch != '.') in inet_net_pton_ipv4()
132 ch = *src++; in inet_net_pton_ipv4()
133 if (!ISASCII(ch) || !ISDIGIT(ch)) in inet_net_pton_ipv4()
140 if (ch == '/' && ISASCII(src[0]) && in inet_net_pton_ipv4()
143 ch = *src++; /* Skip over the /. */ in inet_net_pton_ipv4()
146 n = aresx_sztosi(strchr(digits, ch) - digits); in inet_net_pton_ipv4()
151 } while ((ch = *src++) != '\0' && ISASCII(ch) && ISDIGIT(ch)); in inet_net_pton_ipv4()
152 if (ch != '\0') in inet_net_pton_ipv4()
157 if (ch != '\0') in inet_net_pton_ipv4()
208 char ch; in getbits() local
212 while ((ch = *src++) != '\0') { in getbits()
215 pch = strchr(digits, ch); in getbits()
240 char ch; in getv4() local
244 while ((ch = *src++) != '\0') { in getv4()
247 pch = strchr(digits, ch); in getv4()
257 if (ch == '.' || ch == '/') { in getv4()
261 if (ch == '/') in getv4()
284 int ch, saw_xdigit; in inet_net_pton_ipv6() local
305 while ((ch = *src++) != '\0') { in inet_net_pton_ipv6()
308 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) in inet_net_pton_ipv6()
309 pch = strchr((xdigits = xdigits_u), ch); in inet_net_pton_ipv6()
318 if (ch == ':') { in inet_net_pton_ipv6()
336 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_net_pton_ipv6()
343 if (ch == '/' && getbits(src, &bits) > 0) in inet_net_pton_ipv6()