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

Method CreateStringView

eval/public/cel_value.h:204–206  ·  view source on GitHub ↗

Returns a string value from a string_view. Warning: the caller is responsible for the lifecycle of the backing string. Prefer CreateString instead.

Source from the content-addressed store, hash-verified

202 // responsible for the lifecycle of the backing string. Prefer CreateString
203 // instead.
204 static CelValue CreateStringView(absl::string_view value) {
205 return CelValue(StringHolder(value));
206 }
207
208 static CelValue CreateString(const std::string* str) {
209 return CelValue(StringHolder(str));

Callers

nothing calls this directly

Calls 1

CelValueClass · 0.85

Tested by

no test coverage detected