in lib/regexp.go [120:171]
func (l regexpLib) CompileOptions() []cel.EnvOption {
return []cel.EnvOption{
cel.Function("re_match",
cel.MemberOverload(
"typeV_re_match_string",
[]*cel.Type{cel.DynType, cel.StringType},
cel.BoolType,
cel.BinaryBinding(catch(l.match)),
),
),
cel.Function("re_find",
cel.MemberOverload(
"typeV_re_find_string",
[]*cel.Type{typeV, cel.StringType},
typeV,
cel.BinaryBinding(catch(l.find)),
),
),
cel.Function("re_find_all",
cel.MemberOverload(
"typeV_re_find_all_string",
[]*cel.Type{typeV, cel.StringType},
listV,
cel.BinaryBinding(catch(l.findAll)),
),
),
cel.Function("re_find_submatch",
cel.MemberOverload(
"typeV_re_find_submatch_string",
[]*cel.Type{typeV, cel.StringType},
typeV,
cel.BinaryBinding(catch(l.findSubmatch)),
),
),
cel.Function("re_find_all_submatch",
cel.MemberOverload(
"typeV_re_find_all_submatch_string",
[]*cel.Type{typeV, cel.StringType},
listV,
cel.BinaryBinding(catch(l.findAllSubmatch)),
),
),
cel.Function("re_replace_all",
cel.MemberOverload(
"typeV_re_replace_all_string_dyn",
[]*cel.Type{typeV, cel.StringType, typeV},
typeV,
cel.FunctionBinding(catch(l.replaceAll)),
),
),
}
}