MCPcopy Create free account
hub / github.com/davidblewett/rure-python / offset

Method offset

regex/regex-syntax/src/ast/parse.rs:402–404  ·  view source on GitHub ↗

Return the current offset of the parser. The offset starts at `0` from the beginning of the regular expression pattern string.

(&self)

Source from the content-addressed store, hash-verified

400 /// The offset starts at `0` from the beginning of the regular expression
401 /// pattern string.
402 fn offset(&self) -> usize {
403 self.parser().pos.get().offset
404 }
405
406 /// Return the current line number of the parser.
407 ///

Callers 9

charMethod · 0.80
bumpMethod · 0.80
bump_ifMethod · 0.80
peekMethod · 0.80
peek_spaceMethod · 0.80
is_eofMethod · 0.80
span_charMethod · 0.80
find_atMethod · 0.80

Calls 2

parserMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected