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

Method AppendToString

common/internal/byte_string.cc:514–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514void ByteString::AppendToString(std::string* absl_nonnull out) const {
515 ABSL_DCHECK(out != nullptr);
516
517 switch (GetKind()) {
518 case ByteStringKind::kSmall:
519 out->append(GetSmall());
520 break;
521 case ByteStringKind::kMedium:
522 out->append(GetMedium());
523 break;
524 case ByteStringKind::kLarge:
525 absl::AppendCordToString(GetLarge(), out);
526 break;
527 }
528}
529
530namespace {
531

Callers 7

TEST_PFunction · 0.45
AppendToStringFunction · 0.45
JoinMethod · 0.45
ReplaceMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
AppendToStringFunction · 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