RegexOptimization
RegexOptimization describes how a constant regular expression call is compiled during planning.
Properties
Section titled “Properties”functionName
Section titled “functionName”functionName:
string
functionName identifies the function to optimize.
overloadId?
Section titled “overloadId?”
optionaloverloadId?:string
overloadId optionally narrows the optimization to one overload.
regexIndex
Section titled “regexIndex”regexIndex:
number
regexIndex identifies the call argument containing the regular expression.
Methods
Section titled “Methods”factory()
Section titled “factory()”factory(
options):InterpretableCall
factory compiles the pattern and returns the replacement call.
Parameters
Section titled “Parameters”options
Section titled “options”RegexOptimizationFactoryOptions