Lines Matching refs:pattern
457 // Returns true iff the wildcard pattern matches the string. The
458 // first ':' or '\0' character in pattern marks the end of it.
462 bool UnitTestOptions::PatternMatchesString(const char *pattern,
464 switch (*pattern) {
466 case ':': // Either ':' or '\0' marks the end of the pattern.
469 return *str != '\0' && PatternMatchesString(pattern + 1, str + 1);
471 return (*str != '\0' && PatternMatchesString(pattern, str + 1)) ||
472 PatternMatchesString(pattern + 1, str);
474 return *pattern == *str &&
475 PatternMatchesString(pattern + 1, str + 1);
487 // Finds the next pattern in the filter.
490 // Returns if no more pattern can be found.
495 // Skips the pattern separater (the ':' character).
525 // test if any pattern in it matches the test.
1744 // Chops off the n lowest bits from a bit pattern. Returns the n
1745 // lowest bits. As a side effect, the original bit pattern will be