Lines Matching refs:canonicalized
207 std::string canonicalized = address;
210 for (size_t i = 2; i < canonicalized.size(); i += 3) {
211 canonicalized.insert(i, ":");
217 if (canonicalized.size() != kCanonicalAddressLength)
220 const char separator = canonicalized[2];
221 for (size_t i = 0; i < canonicalized.size(); ++i) {
225 if (canonicalized[i] != separator)
228 canonicalized[i] = ':';
230 if (!IsHexDigit(canonicalized[i]))
233 canonicalized[i] = base::ToUpperASCII(canonicalized[i]);
237 return canonicalized;