Lines Matching defs:Pattern
22 static bool isExact(StringRef Pattern) {
23 return Pattern.size() > 2 && Pattern.starts_with("\"") &&
24 Pattern.ends_with("\"");
27 SingleStringMatcher::SingleStringMatcher(StringRef Pattern)
28 : ExactMatch(isExact(Pattern)) {
30 ExactPattern = Pattern.substr(1, Pattern.size() - 2);
32 Expected<GlobPattern> Glob = GlobPattern::create(Pattern);
34 error(toString(Glob.takeError()) + ": " + Pattern);