def is_match.bits
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport 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)}