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

Function RegisterConcatFunctions

runtime/standard/string_functions.cc:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93absl::Status RegisterConcatFunctions(FunctionRegistry& registry) {
94 using StrCatFnAdapter =
95 BinaryFunctionAdapter<absl::StatusOr<StringValue>, const StringValue&,
96 const StringValue&>;
97 CEL_RETURN_IF_ERROR(StrCatFnAdapter::RegisterGlobalOverload(
98 cel::builtin::kAdd, &ConcatString, registry));
99
100 using BytesCatFnAdapter =
101 BinaryFunctionAdapter<absl::StatusOr<BytesValue>, const BytesValue&,
102 const BytesValue&>;
103 return BytesCatFnAdapter::RegisterGlobalOverload(cel::builtin::kAdd,
104 &ConcatBytes, registry);
105}
106
107} // namespace
108

Callers 1

RegisterStringFunctionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected