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

Method contains_code_point

crates/wtf8/src/lib.rs:1132–1135  ·  view source on GitHub ↗
(&self, pat: CodePoint)

Source from the content-addressed store, hash-verified

1130 }
1131
1132 pub fn contains_code_point(&self, pat: CodePoint) -> bool {
1133 self.bytes
1134 .contains_str(pat.encode_wtf8(&mut [0; MAX_LEN_UTF8]))
1135 }
1136
1137 pub fn get(&self, range: impl ops::RangeBounds<usize>) -> Option<&Self> {
1138 let start = match range.start_bound() {

Callers 4

writeMethod · 0.80
decodeMethod · 0.80
lstripMethod · 0.80
rstripMethod · 0.80

Calls 1

encode_wtf8Method · 0.80

Tested by

no test coverage detected