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

Method advance

crates/sre_engine/src/string.rs:51–55  ·  view source on GitHub ↗
(cursor: &mut StringCursor)

Source from the content-addressed store, hash-verified

49
50 #[inline]
51 fn advance(cursor: &mut StringCursor) -> u32 {
52 cursor.position += 1;
53 unsafe { cursor.ptr = cursor.ptr.add(1) };
54 unsafe { *cursor.ptr as u32 }
55 }
56
57 #[inline]
58 fn peek(cursor: &StringCursor) -> u32 {

Callers

nothing calls this directly

Calls 2

next_code_pointFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected