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

Method find

crates/wtf8/src/lib.rs:1112–1114  ·  view source on GitHub ↗
(&self, pat: &Wtf8)

Source from the content-addressed store, hash-verified

1110 }
1111
1112 pub fn find(&self, pat: &Wtf8) -> Option<usize> {
1113 memchr::memmem::find(self.as_bytes(), pat.as_bytes())
1114 }
1115
1116 pub fn rfind(&self, pat: &Wtf8) -> Option<usize> {
1117 memchr::memmem::rfind(self.as_bytes(), pat.as_bytes())

Callers 15

builtin_str.pyFile · 0.45
builtin_bytes.pyFile · 0.45
callbackFunction · 0.45
_try_parse_test_infoFunction · 0.45
parse_resultsFunction · 0.45
_parse_error_detailsFunction · 0.45
parse_requirementFunction · 0.45
encode_utf8_compatibleFunction · 0.45
encodeFunction · 0.45
parse_unicode_nameMethod · 0.45
parse_stringMethod · 0.45

Calls 2

findFunction · 0.50
as_bytesMethod · 0.45

Tested by

no test coverage detected