Lines Matching defs:matches_with
172 /// `Pattern::matches_with(..)` with the exception that
405 if self.dir_patterns[idx].matches_with(
693 self.matches_with(str, MatchOptions::new())
705 pub fn matches_with(&self, str: &str, options: MatchOptions) -> bool {
714 .map_or(false, |s| self.matches_with(s, options))
887 if pattern.matches_with(special, options) {
971 /// Configuration options to modify the behaviour of `Pattern::matches_with(..)`.
1218 assert!(pat.matches_with(&c.to_string(), options));
1277 assert!(pat.matches_with("aBcDeFg", options));
1278 assert!(pat.matches_with("abcdefg", options));
1279 assert!(pat.matches_with("ABCDEFG", options));
1280 assert!(pat.matches_with("AbCdEfG", options));
1299 assert!(pat_within.matches_with("a", options_case_insensitive));
1300 assert!(pat_within.matches_with("A", options_case_insensitive));
1301 assert!(!pat_within.matches_with("A", options_case_sensitive));
1303 assert!(!pat_except.matches_with("a", options_case_insensitive));
1304 assert!(!pat_except.matches_with("A", options_case_insensitive));
1305 assert!(pat_except.matches_with("A", options_case_sensitive));
1323 .matches_with("abc/def", options_require_literal));
1326 .matches_with("abc/def", options_require_literal));
1329 .matches_with("abc/def", options_require_literal));
1332 .matches_with("abc/def", options_require_literal));
1336 .matches_with("abc/def", options_not_require_literal));
1339 .matches_with("abc/def", options_not_require_literal));
1342 .matches_with("abc/def", options_not_require_literal));
1345 .matches_with("abc/def", options_not_require_literal));
1364 .matches_with(".hello.txt", options)
1372 .matches_with(".hello.txt", options)
1380 .matches_with("aaa/bbb/.ccc", options)
1388 .matches_with("aaa/bbb/c.c.c.", options)
1396 .matches_with("aaa/bbb/.ccc", options)
1404 .matches_with("aaa/.bbb", options)
1412 .matches_with("aaa/.bbb", options)
1417 let f = |options| Pattern::new("**/*").unwrap().matches_with(".bbb", options);