Lines Matching refs:pattern
787 // Returns true iff the wildcard pattern matches the string. The
788 // first ':' or '\0' character in pattern marks the end of it.
792 static bool PatternMatchesString(const char *pattern, const char *str);
1352 GTEST_API_ bool AtomMatchesChar(bool escaped, char pattern, char ch);
1919 // Returns true iff the wildcard pattern matches the string. The
1920 // first ':' or '\0' character in pattern marks the end of it.
1924 bool UnitTestOptions::PatternMatchesString(const char *pattern,
1926 switch (*pattern) {
1928 case ':': // Either ':' or '\0' marks the end of the pattern.
1931 return *str != '\0' && PatternMatchesString(pattern + 1, str + 1);
1933 return (*str != '\0' && PatternMatchesString(pattern, str + 1)) ||
1934 PatternMatchesString(pattern + 1, str);
1936 return *pattern == *str &&
1937 PatternMatchesString(pattern + 1, str + 1);
1949 // Finds the next pattern in the filter.
1952 // Returns if no more pattern can be found.
1957 // Skips the pattern separater (the ':' character).
1987 // test if any pattern in it matches the test.
2905 // Chops off the n lowest bits from a bit pattern. Returns the n
2906 // lowest bits. As a side effect, the original bit pattern will be
7054 << " Expected: " << regex()->pattern() << "\n"
8436 // Returns true iff the given atom (specified by escaped and pattern)
8543 // Since we only care about *whether* the pattern matches str
8635 // No need to calculate the full pattern when the regex is invalid.