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

Method Flatten

common/internal/byte_string.cc:223–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223absl::string_view ByteString::Flatten() {
224 switch (GetKind()) {
225 case ByteStringKind::kSmall:
226 return GetSmall();
227 case ByteStringKind::kMedium:
228 return GetMedium();
229 case ByteStringKind::kLarge:
230 return GetLarge().Flatten();
231 }
232}
233
234absl::optional<absl::string_view> ByteString::TryFlat() const {
235 switch (GetKind()) {

Callers 1

TEST_PFunction · 0.45

Calls 3

GetKindFunction · 0.85
GetSmallFunction · 0.85
GetMediumFunction · 0.85

Tested by 1

TEST_PFunction · 0.36