HomeSort by relevance Sort by last modified time
    Searched full:stringpattern (Results 1 - 16 of 16) sorted by null

  /external/chromium_org/components/url_matcher/
string_pattern.cc 9 StringPattern::StringPattern(const std::string& pattern,
10 StringPattern::ID id)
13 StringPattern::~StringPattern() {}
15 bool StringPattern::operator<(const StringPattern& rhs) const {
regex_set_matcher_unittest.cc 16 StringPattern pattern_1("ab.*c", 42);
17 StringPattern pattern_2("f*f", 17);
18 StringPattern pattern_3("c(ar|ra)b|brac", 239);
19 std::vector<const StringPattern*> regexes;
26 std::set<StringPattern::ID> result1;
32 std::set<StringPattern::ID> result2;
38 std::set<StringPattern::ID> result3;
44 StringPattern pattern_1("AAA", 51);
45 StringPattern pattern_2("aaA", 57);
46 std::vector<const StringPattern*> regexes
    [all...]
string_pattern_unittest.cc 13 TEST(StringPatternTest, StringPattern) {
14 StringPattern r1("Test", 2);
19 StringPattern r2("Test", 3);
21 StringPattern r3("ZZZZ", 2);
string_pattern.h 23 class URL_MATCHER_EXPORT StringPattern {
27 StringPattern(const std::string& pattern, ID id);
28 ~StringPattern();
32 bool operator<(const StringPattern& rhs) const;
38 DISALLOW_COPY_AND_ASSIGN(StringPattern);
regex_set_matcher.h 37 void AddPatterns(const std::vector<const StringPattern*>& regex_list);
45 std::set<StringPattern::ID>* matches) const;
51 typedef std::map<StringPattern::ID, const StringPattern*> RegexMap;
52 typedef std::vector<StringPattern::ID> RE2IDMap;
67 // Mapping of regex StringPattern::IDs to regexes.
70 // to regex StringPattern::IDs.
78 std::vector<const StringPattern*> substring_patterns_;
substring_set_matcher.cc 17 // Compare StringPattern instances based on their string patterns.
18 bool ComparePatterns(const StringPattern* a, const StringPattern* b) {
24 uint32 TreeSize(const std::vector<const StringPattern*>& patterns) {
29 std::vector<const StringPattern*>::const_iterator last = patterns.begin();
30 std::vector<const StringPattern*>::const_iterator current = last + 1;
65 const std::vector<const StringPattern*>& patterns) {
67 std::vector<const StringPattern*>());
71 const std::vector<const StringPattern*>& patterns) {
72 RegisterAndUnregisterPatterns(std::vector<const StringPattern*>(),
    [all...]
url_matcher.h 29 // The difference from a simple StringPattern is that this also supports
63 const StringPattern* substring_pattern);
69 const StringPattern* string_pattern() const {
88 bool IsMatch(const std::set<StringPattern::ID>& matching_patterns,
96 // This is the StringPattern that is used in a SubstringSetMatcher.
97 const StringPattern* string_pattern_;
117 // IMPORTANT: The URLMatcherConditionFactory owns the StringPattern
181 const std::set<StringPattern::ID>& used_patterns);
188 // The URLMatcherCondition will refer to a StringPattern that is
203 bool operator()(StringPattern* lhs, StringPattern* rhs) const
    [all...]
substring_set_matcher.h 31 void RegisterPatterns(const std::vector<const StringPattern*>& patterns);
34 void UnregisterPatterns(const std::vector<const StringPattern*>& patterns);
39 const std::vector<const StringPattern*>& to_register,
40 const std::vector<const StringPattern*>& to_unregister);
46 std::set<StringPattern::ID>* matches) const;
86 typedef std::set<StringPattern::ID> Matches;
102 void AddMatch(StringPattern::ID id);
117 typedef std::map<StringPattern::ID, const StringPattern*> SubstringPatternMap;
118 typedef std::vector<const StringPattern*> SubstringPatternVector
    [all...]
substring_set_matcher_unittest.cc 23 std::vector<const StringPattern*> patterns;
24 StringPattern substring_pattern(pattern, 1);
44 StringPattern substring_pattern_1(pattern_1, 1);
45 StringPattern substring_pattern_2(pattern_2, 2);
49 std::vector<const StringPattern*> patterns;
127 StringPattern pattern_1("a", 1);
128 StringPattern pattern_2("b", 2);
129 StringPattern pattern_3("c", 3);
131 std::vector<const StringPattern*> patterns;
regex_set_matcher.cc 23 const std::vector<const StringPattern*>& regex_list) {
39 std::set<StringPattern::ID>* matches) const {
57 StringPattern::ID id = re2_id_map_[re2_ids[i]];
104 new StringPattern(strings_to_match[i], i));
url_matcher.cc 25 // | URL Query operator | ----translate----> | StringPattern |
166 const StringPattern* string_pattern)
220 const std::set<StringPattern::ID>& matching_patterns,
456 const std::set<StringPattern::ID>& used_patterns) {
495 StringPattern search_pattern(pattern, 0);
510 StringPattern* new_pattern =
511 new StringPattern(pattern, id_counter_++);
526 StringPattern* lhs,
527 StringPattern* rhs) const {
609 const std::set<StringPattern::ID>& matching_patterns
    [all...]
url_matcher_unittest.cc 18 StringPattern pattern("example.com", 1);
64 StringPattern pattern("example.com", 1);
89 StringPattern pattern("example.com", 1);
92 std::set<StringPattern::ID> matching_patterns;
111 StringPattern p1("foobar.com", 1);
112 StringPattern p2("foobar.com", 2);
231 // Check that all StringPattern singletons are freed if we call
233 StringPattern::ID old_id_1 = c1.string_pattern()->id();
234 StringPattern::ID old_id_4 = c4.string_pattern()->id();
235 factory.ForgetUnusedPatterns(std::set<StringPattern::ID>())
    [all...]
  /external/chromium_org/chrome/tools/profile_reset/
jtl_compiler.cc 89 Arguments(StringPattern)));
121 case StringPattern: {
159 StringPattern,
  /frameworks/base/media/mca/filterfw/java/android/filterfw/io/
TextGraphReader.java 361 final Pattern stringPattern = Pattern.compile("'[^']*'|\\\"[^\\\"]*\\\"");
385 if ((curValue = scanner.tryEat(stringPattern)) != null) {
  /external/chromium_org/chrome/renderer/resources/extensions/
json_schema.js 92 stringPattern: "String must match the pattern: *.",
456 this.addError(path, "stringPattern", [schema.pattern]);
  /external/chromium_org/base/test/
trace_event_analyzer_unittest.cc 358 TEST_F(TraceEventAnalyzerTest, StringPattern) {

Completed in 330 milliseconds