Home | History | Annotate | Download | only in src

Lines Matching refs:pattern

375 // Returns true iff the wildcard pattern matches the string.  The
376 // first ':' or '\0' character in pattern marks the end of it.
380 bool UnitTestOptions::PatternMatchesString(const char *pattern,
382 switch (*pattern) {
384 case ':': // Either ':' or '\0' marks the end of the pattern.
387 return *str != '\0' && PatternMatchesString(pattern + 1, str + 1);
389 return (*str != '\0' && PatternMatchesString(pattern, str + 1)) ||
390 PatternMatchesString(pattern + 1, str);
392 return *pattern == *str &&
393 PatternMatchesString(pattern + 1, str + 1);
404 // Finds the next pattern in the filter.
407 // Returns if no more pattern can be found.
412 // Skips the pattern separater (the ':' character).
446 // test if any pattern in it matches the test.
1416 // Chops off the n lowest bits from a bit pattern. Returns the n
1417 // lowest bits. As a side effect, the original bit pattern will be