Home
last modified time | relevance | path

Searched refs:sorted_patterns (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/components/url_matcher/
Dsubstring_set_matcher.cc93 SubstringPatternVector sorted_patterns; in RegisterAndUnregisterPatterns() local
94 sorted_patterns.resize(patterns_.size()); in RegisterAndUnregisterPatterns()
100 sorted_patterns[next] = i->second; in RegisterAndUnregisterPatterns()
103 std::sort(sorted_patterns.begin(), sorted_patterns.end(), ComparePatterns); in RegisterAndUnregisterPatterns()
104 tree_.reserve(TreeSize(sorted_patterns)); in RegisterAndUnregisterPatterns()
106 RebuildAhoCorasickTree(sorted_patterns); in RegisterAndUnregisterPatterns()
142 const SubstringPatternVector& sorted_patterns) { in RebuildAhoCorasickTree() argument
151 for (SubstringPatternVector::const_iterator i = sorted_patterns.begin(); in RebuildAhoCorasickTree()
152 i != sorted_patterns.end(); in RebuildAhoCorasickTree()
Dsubstring_set_matcher.h121 void RebuildAhoCorasickTree(const SubstringPatternVector& sorted_patterns);