MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / EnableRegexPrecompilation

Function EnableRegexPrecompilation

runtime/regex_precompilation.cc:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52} // namespace
53
54absl::Status EnableRegexPrecompilation(RuntimeBuilder& builder) {
55 CEL_ASSIGN_OR_RETURN(RuntimeImpl * runtime_impl,
56 RuntimeImplFromBuilder(builder));
57 ABSL_ASSERT(runtime_impl != nullptr);
58
59 runtime_impl->expr_builder().AddProgramOptimizer(
60 CreateRegexPrecompilationExtension(
61 runtime_impl->expr_builder().options().regex_max_program_size));
62 return absl::OkStatus();
63}
64
65} // namespace cel::extensions

Callers 2

ConfigureRuntimeImplFunction · 0.85
TEST_PFunction · 0.85

Calls 4

AddProgramOptimizerMethod · 0.80
RuntimeImplFromBuilderFunction · 0.70
CEL_ASSIGN_OR_RETURNFunction · 0.50

Tested by 2

ConfigureRuntimeImplFunction · 0.68
TEST_PFunction · 0.68