Lines Matching refs:repr
34 char repr[INET6_ADDRSTRLEN] = "\0"; in toString() local
41 inet_ntop(AF_INET, &v4, repr, sizeof(repr)); in toString()
46 inet_ntop(AF_INET6, &v6, repr, sizeof(repr)); in toString()
54 return StringPrintf("%s%%%u", repr, mData.scope_id); in toString()
57 return repr; in toString()
60 bool IPAddress::forString(const std::string& repr, IPAddress* ip) { in forString() argument
65 const int ret = getaddrinfo(repr.c_str(), nullptr, &hints, &res); in forString()
128 bool IPPrefix::forString(const std::string& repr, IPPrefix* prefix) { in forString() argument
129 size_t index = repr.find('/'); in forString()
134 if (!IPAddress::forString(repr.substr(0, index), &ip)) return false; in forString()
137 const char* prefixString = repr.c_str() + index + 1; in forString()