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

Method remaining_codes

crates/sre_engine/src/engine.rs:1067–1069  ·  view source on GitHub ↗
(&self, req: &Request<'_, S>)

Source from the content-addressed store, hash-verified

1065 }
1066
1067 const fn remaining_codes<S>(&self, req: &Request<'_, S>) -> usize {
1068 req.pattern_codes.len() - self.code_position
1069 }
1070
1071 const fn remaining_chars<S>(&self, req: &Request<'_, S>) -> usize {
1072 req.end - self.cursor.position

Callers 1

_matchFunction · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected