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

Method StringOrDie

eval/public/cel_value.h:300–302  ·  view source on GitHub ↗

Returns stored const string* value. Fails if stored value type is not const string*.

Source from the content-addressed store, hash-verified

298 // Returns stored const string* value.
299 // Fails if stored value type is not const string*.
300 StringHolder StringOrDie() const {
301 return GetValueOrDie<StringHolder>(Type::kString);
302 }
303
304 BytesHolder BytesOrDie() const {
305 return GetValueOrDie<BytesHolder>(Type::kBytes);

Callers 15

operator[]Method · 0.80
operator[]Method · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TestTypeConvertsMethod · 0.80
FakeStringMapMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
KeyAsStringFunction · 0.80

Calls

no outgoing calls

Tested by 15

TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TestTypeConvertsMethod · 0.64
FakeStringMapMethod · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64