Searched refs:trimmed_pattern (Results 1 – 1 of 1) sorted by relevance
220 std::string trimmed_pattern = pattern; in HostMatchesPattern() local229 trimmed_pattern.erase(trimmed_pattern.length() - 2); in HostMatchesPattern()233 if (StartsWithASCII(trimmed_pattern, "*.", true)) { in HostMatchesPattern()234 trimmed_pattern.erase(0, 2); in HostMatchesPattern()239 if (trimmed_pattern.empty() || in HostMatchesPattern()240 trimmed_pattern.find('*') != std::string::npos || in HostMatchesPattern()241 !EndsWith(trimmed_host, trimmed_pattern, true)) { in HostMatchesPattern()247 int pos = trimmed_host.length() - trimmed_pattern.length(); in HostMatchesPattern()252 return trimmed_host == trimmed_pattern; in HostMatchesPattern()