1 // Copyright (c) 2018 The predicates-rs Project Developers.
2 //
3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6 // option. This file may not be copied, modified, or distributed
7 // except according to those terms.
8 
9 //! String Predicates
10 //!
11 //! This module contains predicates specific to string handling.
12 
13 mod basics;
14 pub use self::basics::*;
15 mod adapters;
16 pub use self::adapters::*;
17 
18 #[cfg(feature = "diff")]
19 mod difference;
20 #[cfg(feature = "diff")]
21 pub use self::difference::{diff, DifferencePredicate};
22 #[cfg(feature = "normalize-line-endings")]
23 mod normalize;
24 #[cfg(feature = "normalize-line-endings")]
25 pub use self::normalize::NormalizedPredicate;
26 
27 #[cfg(feature = "regex")]
28 mod regex;
29 #[cfg(feature = "regex")]
30 pub use self::regex::{is_match, RegexError, RegexPredicate};
31