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

Function MayBeRawStringLiteral

internal/strings.cc:518–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518bool MayBeRawStringLiteral(absl::string_view str) {
519 return (str.size() >= 3 && absl::StartsWithIgnoreCase(str, "r") &&
520 str[1] == str[str.size() - 1] && (str[1] == '\'' || str[1] == '"'));
521}
522
523bool MayBeRawBytesLiteral(absl::string_view str) {
524 return (str.size() >= 4 &&

Callers 1

ParseStringLiteralFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected