if (pattern == null) {
return null;
}
RegExp regexp = new RegExp(pattern.utf8ToString());
ByteRunAutomaton regexpRunAutomaton = new ByteRunAutomaton(regexp.toAutomaton());
return regexpRunAutomaton.run(source.bytes, source.offset, source.length);
}
@Override
public FunctionInfo info() {
return INFO;