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

Function FormatSingleQuotedStringLiteral

internal/strings.cc:664–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664std::string FormatSingleQuotedStringLiteral(absl::string_view str) {
665 return absl::StrCat("'", EscapeInternal(str, true, '\''), "'");
666}
667
668std::string FormatDoubleQuotedStringLiteral(absl::string_view str) {
669 return absl::StrCat("\"", EscapeInternal(str, true, '"'), "\"");

Callers 1

TESTFunction · 0.85

Calls 1

EscapeInternalFunction · 0.85

Tested by 1

TESTFunction · 0.68