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

Function MayBeStringLiteral

internal/strings.cc:508–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508bool MayBeStringLiteral(absl::string_view str) {
509 return (str.size() >= 2 && str[0] == str[str.size() - 1] &&
510 (str[0] == '\'' || str[0] == '"'));
511}
512
513bool MayBeBytesLiteral(absl::string_view str) {
514 return (str.size() >= 3 && absl::StartsWithIgnoreCase(str, "b") &&

Callers 1

ParseStringLiteralFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected