public bool PrePassWontMatch(MatchKind kind, string path, IPathComparer comparer) { return(comparer.IndexOf(path, _text, 0, path.Length) < 0); }
public static bool EndsWith(this IPathComparer comparer, string value, string searchText) { value = (value ?? string.Empty); searchText = (searchText ?? string.Empty); return(comparer.IndexOf(value, searchText, 0, value.Length) == (value.Length - searchText.Length)); }
public bool PrePassWontMatch(MatchKind kind, string path, IPathComparer comparer) { return comparer.IndexOf(path, _text, 0, path.Length) < 0; }