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

Function EscapeSpecialCharacters

testing/testrunner/coverage_index.cc:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52using ::google::api::expr::runtime::InstrumentationFactory;
53
54std::string EscapeSpecialCharacters(absl::string_view expr_text) {
55 return absl::StrReplaceAll(expr_text, {{"\\\"", "\""},
56 {"\"", "\\\""},
57 {"\n", "\\n"},
58 {"||", " \\| \\| "},
59 {"<", "\\<"},
60 {">", "\\>"},
61 {"{", "\\{"},
62 {"}", "\\}"}});
63}
64
65std::string KindToString(const NavigableProtoAstNode& node) {
66 if (node.parent_relation() != ChildKind::kUnspecified &&

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected