(
pattern: PyStrRef,
string: PyStrRef,
flags: OptionalArg<usize>,
vm: &VirtualMachine,
)
| 108 | |
| 109 | #[pyfunction] |
| 110 | fn search( |
| 111 | pattern: PyStrRef, |
| 112 | string: PyStrRef, |
| 113 | flags: OptionalArg<usize>, |
| 114 | vm: &VirtualMachine, |
| 115 | ) -> PyResult<Option<PyMatch>> { |
| 116 | let flags = extract_flags(flags); |
| 117 | let regex = make_regex(vm, pattern.as_str(), flags)?; |
| 118 | Ok(do_search(®ex, string)) |
| 119 | } |
| 120 | |
| 121 | #[pyfunction] |
| 122 | fn sub( |
nothing calls this directly
no test coverage detected