def is_match.bits

bend-kit-regex@0.8.0.0 · regex.bend:1274

import bend-kit-regex@0.8.0.0/regex.bend as Regex
import Base

1274# The bit NFA form of is_match, or None when the program is too large or has a word boundary.
1275def is_match.bits(re: Regex, s: String) -> Maybe<&2, Bool>:
1276  Regex{prog, fuel, slots, start, bits, asc, plain, must, reverse} = re
1277  match bits:
1278    case None{}:
1279      None{}
1280    case Some{b}:
1281      Some{bits.is_match(b, start, s)}

Uses (5)

Used by (1)