Lines Matching refs:domain
11 // Based on DJB's public domain code.
59 std::string DNSDomainToString(const std::string& domain) {
62 for (unsigned i = 0; i < domain.size() && domain[i]; i += domain[i] + 1) {
64 if (domain[i] < 0)
67 if (domain[i] > 63)
73 if (static_cast<unsigned>(domain[i]) + i + 1 > domain.size())
76 ret += domain.substr(i + 1, domain[i]);