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

Method TryFlat

common/internal/byte_string.cc:234–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234absl::optional<absl::string_view> ByteString::TryFlat() const {
235 switch (GetKind()) {
236 case ByteStringKind::kSmall:
237 return GetSmall();
238 case ByteStringKind::kMedium:
239 return GetMedium();
240 case ByteStringKind::kLarge:
241 return GetLarge().TryFlat();
242 }
243}
244
245bool ByteString::Equals(absl::string_view rhs) const {
246 return Visit(absl::Overload(

Callers 15

ValueFromAnyMethod · 0.80
operator()Method · 0.80
FlatStringValueFunction · 0.80
FormatStringLiteralFunction · 0.80
StructEqualMethod · 0.80
FindMethod · 0.80
ToStringViewMethod · 0.80
TEST_PFunction · 0.80
string_value.hFile · 0.80
StringDebugStringFunction · 0.80

Calls 3

GetKindFunction · 0.85
GetSmallFunction · 0.85
GetMediumFunction · 0.85

Tested by 3

TEST_PFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64