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

Function MayBeTripleQuotedString

internal/strings.cc:502–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502bool MayBeTripleQuotedString(absl::string_view str) {
503 return (str.size() >= 6 &&
504 ((absl::StartsWith(str, "\"\"\"") && absl::EndsWith(str, "\"\"\"")) ||
505 (absl::StartsWith(str, "'''") && absl::EndsWith(str, "'''"))));
506}
507
508bool MayBeStringLiteral(absl::string_view str) {
509 return (str.size() >= 2 && str[0] == str[str.size() - 1] &&

Callers 2

ParseStringLiteralFunction · 0.85
ParseBytesLiteralFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected