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

/art/runtime/jdwp/
H A Djdwp_event.cc428 static bool PatternMatch(const char* pattern, const std::string& target) { argument
429 size_t patLen = strlen(pattern);
430 if (pattern[0] == '*') {
435 return strcmp(pattern+1, target.c_str() + (target.size()-patLen)) == 0;
436 } else if (pattern[patLen-1] == '*') {
437 return strncmp(pattern, target.c_str(), patLen-1) == 0;
439 return strcmp(pattern, target.c_str()) == 0;
/art/runtime/quick/
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.
279 // must also match the same pattern.

Completed in 164 milliseconds