pub fn compilef(&self, pattern: &str, flags_str: &str) -> TestCompiledRegex {
        let mut flags = regress::Flags::from(flags_str);
        flags.no_opt = !self.optimize;

        let re = regress::Regex::with_flags(pattern, flags);
        assert!(
            re.is_ok(),
            "Failed to parse! flags: {} pattern: {}, error: {}",
            flags_str,
            pattern,
            re.unwrap_err()
        );
        TestCompiledRegex {
            re: re.unwrap(),
            tc: *self,
        }
    }
/// Compile a pattern to a regex, with given flags.
Compile a pattern to a regex, with given flags.
Compile a pattern to a regex with given flags .
pub fn compilef(&self, pattern: &str, flags_str: &str) -> TestCompiledRegex {
        let mut flags = regress::Flags::from(flags_str);
        flags.no_opt = !self.optimize;
        let re = regress::Regex::with_flags(pattern, flags);
        assert!(
            re.is_ok(),
            "Failed to parse! flags: {} pattern: {}, error: {}",
            flags_str,
            pattern,
            re.unwrap_err()
        );
        TestCompiledRegex {
            re: re.unwrap(),
            tc: *self,
        }
    }
pub fn compilef ( & self , pattern : & str , flags_str : & str ) -> TestCompiledRegex { let mut flags = regress :: Flags :: from ( flags_str ) ; flags . no_opt = ! self . optimize ; let re = regress :: Regex :: with_flags ( pattern , flags ) ; assert ! ( re is_ok ( ) " " flags_str pattern re unwrap_err ( ) ) ; TestCompiledRegex { re : re . unwrap ( ) , tc : * self , } }
Compile a pattern to a regex, with given flags.
Compile a pattern to a regex with given flags .
&self
pattern
&str
flags_str
&str