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

Method ToString

common/internal/byte_string.cc:487–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487std::string ByteString::ToString() const {
488 switch (GetKind()) {
489 case ByteStringKind::kSmall:
490 return std::string(GetSmall());
491 case ByteStringKind::kMedium:
492 return std::string(GetMedium());
493 case ByteStringKind::kLarge:
494 return static_cast<std::string>(GetLarge());
495 }
496}
497
498void ByteString::CopyToString(std::string* absl_nonnull out) const {
499 ABSL_DCHECK(out != nullptr);

Callers 9

ToExprValueFunction · 0.45
TEST_PFunction · 0.45
NativeStringFunction · 0.45
ToStringFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
ErrorDebugStringFunction · 0.45
NativeStringFunction · 0.45
ToStringFunction · 0.45

Calls 3

GetKindFunction · 0.85
GetSmallFunction · 0.85
GetMediumFunction · 0.85

Tested by 3

TEST_PFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36