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

Method code_point_indices

crates/wtf8/src/lib.rs:841–846  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

839 /// Returns an iterator for the string’s code points and their indices.
840 #[inline]
841 pub fn code_point_indices(&self) -> Wtf8CodePointIndices<'_> {
842 Wtf8CodePointIndices {
843 front_offset: 0,
844 iter: self.code_points(),
845 }
846 }
847
848 /// Access raw bytes of WTF-8 data
849 #[inline]

Callers 14

scanstringFunction · 0.80
scanstringFunction · 0.80
codepoint_range_endFunction · 0.80
get_num_digitsFunction · 0.80
parse_fill_and_alignFunction · 0.80
parse_specMethod · 0.80
iter_code_pointsFunction · 0.80
handle_encode_errorMethod · 0.80
call_native_encode_errorFunction · 0.80
nextMethod · 0.80
splitlinesMethod · 0.80

Calls 1

code_pointsMethod · 0.80

Tested by

no test coverage detected