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

Method UpperAscii

common/values/string_value.cc:950–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

948} // namespace
949
950StringValue StringValue::UpperAscii(google::protobuf::Arena* absl_nonnull arena) const {
951 ABSL_DCHECK(arena != nullptr);
952
953 switch (value_.GetKind()) {
954 case common_internal::ByteStringKind::kSmall: {
955 std::string out;
956 if (!(UpperAsciiImpl)(value_.GetSmall(), &out)) {
957 return *this;
958 }
959 return StringValue::From(std::move(out), arena);
960 }
961 case common_internal::ByteStringKind::kMedium: {
962 std::string out;
963 if (!(UpperAsciiImpl)(value_.GetMedium(), &out)) {
964 return *this;
965 }
966 return StringValue::From(std::move(out), arena);
967 }
968 case common_internal::ByteStringKind::kLarge:
969 return StringValue::Wrap((UpperAsciiImpl)(value_.GetLarge()));
970 }
971}
972
973namespace {
974

Callers 2

TEST_FFunction · 0.80
UpperAsciiFunction · 0.80

Calls 2

GetKindMethod · 0.80
WrapFunction · 0.70

Tested by 1

TEST_FFunction · 0.64