Searched defs:pattern (Results 1 - 2 of 2) sorted by relevance

/art/compiler/dex/
H A Dinline_method_analyser.cc39 // Helper class for matching a pattern.
46 static bool Match(const DexFile::CodeItem* code_item, MatchFn* const (&pattern)[size]);
71 static bool DoMatch(const DexFile::CodeItem* code_item, MatchFn* const* pattern, size_t size);
80 bool Matcher::Match(const DexFile::CodeItem* code_item, MatchFn* const (&pattern)[size]) { argument
81 return DoMatch(code_item, pattern, size);
130 bool Matcher::DoMatch(const DexFile::CodeItem* code_item, MatchFn* const* pattern, size_t size) { argument
133 if (!pattern[matcher.pos_](&matcher)) {
199 // with this pattern.
280 // must also match the same pattern.
/art/runtime/jdwp/
H A Djdwp_event.cc468 static bool PatternMatch(const char* pattern, const std::string& target) { argument
469 size_t patLen = strlen(pattern);
470 if (pattern[0] == '*') {
475 return strcmp(pattern+1, target.c_str() + (target.size()-patLen)) == 0;
476 } else if (pattern[patLen-1] == '*') {
477 return strncmp(pattern, target.c_str(), patLen-1) == 0;
479 return strcmp(pattern, target.c_str()) == 0;

Completed in 455 milliseconds