Ejemplo n.º 1
0
 private PatternMatchKind GetKind(CamelCaseResult result)
 => PatternMatcher.GetCamelCaseKind(result, _candidateHumps);
Ejemplo n.º 2
0
 public static PatternMatch?GetFirstMatch(this PatternMatcher matcher, string candidate)
 {
     using var matches = TemporaryArray <PatternMatch> .Empty;
     matcher.AddMatches(candidate, ref matches.AsRef());
     return(matches.Count > 0 ? matches[0] : null);
 }
Ejemplo n.º 3
0
 public static bool Matches(this PatternMatcher matcher, string candidate)
 => matcher.GetFirstMatch(candidate) != null;
Ejemplo n.º 4
0
 public static bool Matches(this PatternMatcher matcher, [NotNullWhen(true)] string?candidate)
 => matcher.GetFirstMatch(candidate) != null;