MCPcopy Index your code
hub / github.com/RustPython/RustPython / fullmatch

Method fullmatch

crates/vm/src/stdlib/_sre.rs:255–268  ·  view source on GitHub ↗
(
            zelf: PyRef<Self>,
            string_args: StringArgs,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

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(

Callers 15

__format__Method · 0.80
_parse_versionFunction · 0.80
join_header_wordsFunction · 0.80
getFilesToDeleteMethod · 0.80
assert_logMethod · 0.80
test_re_fullmatchMethod · 0.80
test_word_boundariesMethod · 0.80
test_ignore_spacesMethod · 0.80
test_commentsMethod · 0.80
test_bug_20998Method · 0.80

Calls

no outgoing calls

Tested by 13

assert_logMethod · 0.64
test_re_fullmatchMethod · 0.64
test_word_boundariesMethod · 0.64
test_ignore_spacesMethod · 0.64
test_commentsMethod · 0.64
test_bug_20998Method · 0.64
test_bug_gh91616Method · 0.64
test_re_benchmarksMethod · 0.64