(
pattern: PyStrRef,
string: PyStrRef,
flags: OptionalArg<usize>,
vm: &VirtualMachine,
)
| 96 | |
| 97 | #[pyfunction(name = "match")] |
| 98 | fn match_( |
| 99 | pattern: PyStrRef, |
| 100 | string: PyStrRef, |
| 101 | flags: OptionalArg<usize>, |
| 102 | vm: &VirtualMachine, |
| 103 | ) -> PyResult<Option<PyMatch>> { |
| 104 | let flags = extract_flags(flags); |
| 105 | let regex = make_regex(vm, pattern.as_str(), flags)?; |
| 106 | Ok(do_match(®ex, string)) |
| 107 | } |
| 108 | |
| 109 | #[pyfunction] |
| 110 | fn search( |
nothing calls this directly
no test coverage detected