The leftmost-first match at or after start: its start and end, or end -1. earliest only
promises to say whether there is one (the end may be early and the start is not computed).
find_span :: (
engine: *Engine,
text: string,
start: int,
earliest := false
) -> (start: int, end: int)
The leftmost-first match at or after start: its start and end, or end -1. earliest only
promises to say whether there is one (the end may be early and the start is not computed).
Parameters
- engine: *Engine
- text: string
- start: int
- earliest := false
Returns
- start: int
- end: int