Lines Matching refs:ipv6
401 void RemoveLeadingZeros(std::vector<std::string> &ipv6)
403 size_t len = ipv6.size();
405 size_t strLen = ipv6[i].size();
409 if (ipv6[i][j] != '0') {
415 ipv6[i] = "0";
417 ipv6[i] = ipv6[i].substr(j);
422 std::string ZeroCompression(std::vector<std::string> &ipv6)
429 size_t len = ipv6.size();
433 while (i < len && ipv6[i] == "0") {
444 size_t ipv6Len = ipv6.size();
455 res += ipv6[i];
490 std::regex ipv6("(::|(:((:[0-9A-Fa-f]{1,4}){1,7}))|(([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|"
500 if (!std::regex_match(input, ipv6)) {