Home | History | Annotate | Download | only in src

Lines Matching refs:CHAR

57 template<typename CHAR, typename UCHAR>
58 bool DoFindIPv4Components(const CHAR* spec,
93 !IsIPv4Char(static_cast<unsigned char>(spec[i]))) {
115 template<typename CHAR>
117 const CHAR* spec,
149 char buf[kMaxComponentLen + 1]; // digits + '\0'
154 char input = static_cast<char>(spec[i]);
184 void AppendIPv4Address(const unsigned char address[4],
189 char str[16];
202 template<typename CHAR>
203 CanonHostInfo::Family DoIPv4AddressToNumber(const CHAR* spec,
205 unsigned char address[4],
236 address[i] = static_cast<unsigned char>(component_values[i]);
242 address[i] = static_cast<unsigned char>(last_value);
259 template<typename CHAR, typename UCHAR>
260 bool DoCanonicalizeIPv4Address(const CHAR* spec,
264 unsigned char address[4];
344 template<typename CHAR, typename UCHAR>
345 bool DoParseIPv6(const CHAR* spec,
416 if (!IsHexChar(static_cast<unsigned char>(spec[i]))) {
419 if (IsIPv4Char(static_cast<unsigned char>(spec[i]))) {
472 template<typename CHAR>
473 uint16 IPv6HexComponentToNumber(const CHAR* spec,
478 char buf[5];
480 buf[i] = static_cast<char>(spec[component.begin + i]);
490 template<typename CHAR, typename UCHAR>
491 bool DoIPv6AddressToNumber(const CHAR* spec,
493 unsigned char address[16]) {
505 if (!DoParseIPv6<CHAR, UCHAR>(spec, ipv6_comp, &ipv6_parsed))
527 uint16 number = IPv6HexComponentToNumber<CHAR>(
566 void ChooseIPv6ContractionRange(const unsigned char address[16],
599 template<typename CHAR, typename UCHAR>
600 bool DoCanonicalizeIPv6Address(const CHAR* spec,
605 unsigned char address[16];
650 char str[5];
670 bool FindIPv4Components(const char* spec,
673 return DoFindIPv4Components<char, unsigned char>(spec, host, components);
682 void CanonicalizeIPAddress(const char* spec,
686 if (DoCanonicalizeIPv4Address<char, unsigned char>(
689 if (DoCanonicalizeIPv6Address<char, unsigned char>(
706 CanonHostInfo::Family IPv4AddressToNumber(const char* spec,
708 unsigned char address[4],
710 return DoIPv4AddressToNumber<char>(spec, host, address, num_ipv4_components);
715 unsigned char address[4],
721 bool IPv6AddressToNumber(const char* spec,
723 unsigned char address[16]) {
724 return DoIPv6AddressToNumber<char, unsigned char>(spec, host, address);
729 unsigned char address[16]) {