static bool matchesAPath(FixupContext* context, const char* name, char* paths[][MAX_DEPTH], int pathsCount) { for(int i = 0; i < pathsCount; i++) { if(matchesPath(context, paths[i], name)) { return true; } } return false; }
bool UserContentURLPattern::matches(const URL& test) const { if (m_invalid) return false; if (!equalIgnoringASCIICase(test.protocol(), m_scheme)) return false; if (!equalLettersIgnoringASCIICase(m_scheme, "file") && !matchesHost(test)) return false; return matchesPath(test); }
bool UserContentURLPattern::matches(const KURL& test) const { if (m_invalid) return false; if (test.protocol() != m_scheme) return false; if (!matchesHost(test)) return false; return matchesPath(test); }