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

Function UnescapeBytes

internal/strings.cc:542–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542absl::StatusOr<std::string> UnescapeBytes(absl::string_view str) {
543 std::string out;
544 std::string error;
545 if (!UnescapeInternal(str, "", false, true, &out, &error)) {
546 return absl::InvalidArgumentError(
547 absl::StrCat("Invalid escaped bytes: ", error));
548 }
549 return out;
550}
551
552std::string EscapeString(absl::string_view str) {
553 return EscapeInternal(str, true, '\0');

Callers 1

TESTFunction · 0.85

Calls 1

UnescapeInternalFunction · 0.85

Tested by 1

TESTFunction · 0.68