(
zelf: PyRef<Self>,
string_args: StringArgs,
vm: &VirtualMachine,
)
| 253 | |
| 254 | #[pymethod] |
| 255 | fn fullmatch( |
| 256 | zelf: PyRef<Self>, |
| 257 | string_args: StringArgs, |
| 258 | vm: &VirtualMachine, |
| 259 | ) -> PyResult<Option<PyRef<Match>>> { |
| 260 | with_sre_str!(zelf, &string_args.string.clone(), vm, |x| { |
| 261 | let mut req = x.create_request(&zelf, string_args.pos, string_args.endpos); |
| 262 | req.match_all = true; |
| 263 | let mut state = State::default(); |
| 264 | Ok(state.py_match(&req).then(|| { |
| 265 | Match::new(&mut state, zelf.clone(), string_args.string).into_ref(&vm.ctx) |
| 266 | })) |
| 267 | }) |
| 268 | } |
| 269 | |
| 270 | #[pymethod] |
| 271 | fn search( |
no outgoing calls