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

Function LowerAsciiImpl

common/values/string_value.cc:825–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823namespace {
824
825bool LowerAsciiImpl(absl::string_view in, std::string* absl_nonnull out) {
826 if (in.empty()) {
827 return false;
828 }
829 bool needs_conversion = false;
830 for (char c : in) {
831 if (absl::ascii_isupper(c)) {
832 needs_conversion = true;
833 break;
834 }
835 }
836
837 if (!needs_conversion) {
838 return false;
839 }
840
841 *out = absl::AsciiStrToLower(in);
842 return true;
843}
844
845absl::Cord LowerAsciiImpl(const absl::Cord& in) {
846 if (in.empty()) {

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected