Lines Matching refs:repr
35 char repr[INET6_ADDRSTRLEN] = "\0"; in toString() local
42 inet_ntop(AF_INET, &v4, repr, sizeof(repr)); in toString()
47 inet_ntop(AF_INET6, &v6, repr, sizeof(repr)); in toString()
55 return StringPrintf("%s%%%u", repr, mData.scope_id); in toString()
58 return repr; in toString()
61 bool IPAddress::forString(const std::string& repr, IPAddress* ip) { in forString() argument
66 const int ret = getaddrinfo(repr.c_str(), nullptr, &hints, &res); in forString()
129 bool IPPrefix::forString(const std::string& repr, IPPrefix* prefix) { in forString() argument
130 size_t index = repr.find('/'); in forString()
135 if (!IPAddress::forString(repr.substr(0, index), &ip)) return false; in forString()
138 const char* prefixString = repr.c_str() + index + 1; in forString()