Home
last modified time | relevance | path

Searched refs:MatchPattern (Results 1 – 7 of 7) sorted by relevance

/external/libchrome/base/strings/
Dpattern_unittest.cc12 EXPECT_TRUE(MatchPattern("www.google.com", "*.com")); in TEST()
13 EXPECT_TRUE(MatchPattern("www.google.com", "*")); in TEST()
14 EXPECT_FALSE(MatchPattern("www.google.com", "www*.g*.org")); in TEST()
15 EXPECT_TRUE(MatchPattern("Hello", "H?l?o")); in TEST()
16 EXPECT_FALSE(MatchPattern("www.google.com", "http://*)")); in TEST()
17 EXPECT_FALSE(MatchPattern("www.msn.com", "*.COM")); in TEST()
18 EXPECT_TRUE(MatchPattern("Hello*1234", "He??o\\*1*")); in TEST()
19 EXPECT_FALSE(MatchPattern("", "*.*")); in TEST()
20 EXPECT_TRUE(MatchPattern("", "*")); in TEST()
21 EXPECT_TRUE(MatchPattern("", "?")); in TEST()
[all …]
Dpattern.h19 BASE_EXPORT bool MatchPattern(const StringPiece& string,
21 BASE_EXPORT bool MatchPattern(const StringPiece16& string,
Dpattern.cc157 bool MatchPattern(const StringPiece& eval, const StringPiece& pattern) { in MatchPattern() function
163 bool MatchPattern(const StringPiece16& eval, const StringPiece16& pattern) { in MatchPattern() function
/external/libchrome/base/trace_event/
Dtrace_config.cc194 if (!base::MatchPattern(category_group_token.c_str(), in IsCategoryGroupEnabled()
207 if (base::MatchPattern(category_group_token.c_str(), ci->c_str())) { in IsCategoryGroupEnabled()
219 if (!base::MatchPattern(category_group_token.c_str(), in IsCategoryGroupEnabled()
642 if (base::MatchPattern(category_name, ci->c_str())) in IsCategoryEnabled()
646 if (base::MatchPattern(category_name, TRACE_DISABLED_BY_DEFAULT("*"))) in IsCategoryEnabled()
652 if (base::MatchPattern(category_name, ci->c_str())) in IsCategoryEnabled()
Dtrace_event_unittest.cc2282 return base::MatchPattern(arg_name, "granular_arg_whitelisted"); in IsArgNameWhitelisted()
2288 if (base::MatchPattern(category_group_name, "toplevel") && in IsTraceEventArgsWhitelisted()
2289 base::MatchPattern(event_name, "*")) { in IsTraceEventArgsWhitelisted()
2293 if (base::MatchPattern(category_group_name, "benchmark") && in IsTraceEventArgsWhitelisted()
2294 base::MatchPattern(event_name, "granularly_whitelisted")) { in IsTraceEventArgsWhitelisted()
/external/libchrome/base/test/
Dtrace_event_analyzer.cc326 *result = base::MatchPattern(lhs, rhs); in CompareAsString()
328 *result = base::MatchPattern(rhs, lhs); in CompareAsString()
334 *result = !base::MatchPattern(lhs, rhs); in CompareAsString()
336 *result = !base::MatchPattern(rhs, lhs); in CompareAsString()
/external/clang/tools/driver/
Ddriver.cpp117 StringRef MatchPattern = Edit.substr(2).split('/').first; in ApplyOneQAOverride() local
125 std::string Repl = llvm::Regex(MatchPattern).sub(ReplPattern, Args[i]); in ApplyOneQAOverride()