File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616#define THIRD_PARTY_CEL_CPP_REGEX_PRECOMPILATION_FOLDING_H_
1717
1818#include " absl/status/status.h"
19- #include " common/memory.h"
2019#include " runtime/runtime_builder.h"
2120
2221namespace cel ::extensions {
2322
24- // Enable constant folding in the runtime being built .
23+ // Enable regular expression precompilation .
2524//
26- // Constant folding eagerly evaluates sub-expressions with all constant inputs
27- // at plan time to simplify the resulting program. User extensions functions are
28- // executed if they are eagerly bound.
29- //
30- // The provided memory manager must outlive the runtime object built
31- // from builder.
25+ // Attempts to precompile regular expression patterns that are known to be
26+ // constant in 'match' calls. If an invalid pattern is encountered, expression
27+ // planning will fail instead of returning a program.
3228absl::Status EnableRegexPrecompilation (RuntimeBuilder& builder);
3329
3430} // namespace cel::extensions
You can’t perform that action at this time.
0 commit comments