Regex module

onepass_search

procedure · 1 overloadSource

Fills slots (-1 where a group did not take part) with the offsets of the match text[s .. e] that starts at s, which must be the match the pattern prefers there. False if the table finds no path that ends exactly at e.

onepass_search :: (
    t: *OnePass,
    text: string,
    s: int,
    e: int,
    slots: [] int
) -> bool

Fills slots (-1 where a group did not take part) with the offsets of the match text[s .. e] that starts at s, which must be the match the pattern prefers there. False if the table finds no path that ends exactly at e.

Parameters

text: string
s: int
e: int
slots: [] int

Returns

bool

See also