Lines Matching refs:domain
11 // Based on DJB's public domain code.
61 std::string DNSDomainToString(const base::StringPiece& domain) {
64 for (unsigned i = 0; i < domain.size() && domain[i]; i += domain[i] + 1) {
66 if (domain[i] < 0)
69 if (domain[i] > 63)
75 if (static_cast<unsigned>(domain[i]) + i + 1 > domain.size())
78 domain.substr(i + 1, domain[i]).AppendToString(&ret);