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

Function MayBeRawBytesLiteral

internal/strings.cc:523–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521}
522
523bool MayBeRawBytesLiteral(absl::string_view str) {
524 return (str.size() >= 4 &&
525 (absl::StartsWithIgnoreCase(str, "rb") ||
526 absl::StartsWithIgnoreCase(str, "br")) &&
527 (str[2] == str[str.size() - 1]) && (str[2] == '\'' || str[2] == '"'));
528}
529
530} // namespace
531

Callers 1

ParseBytesLiteralFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected