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

Function AppendEscaped

common/internal/signature.cc:34–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace {
33
34void AppendEscaped(std::string* result, std::string_view str, bool escape_dot) {
35 for (char c : str) {
36 switch (c) {
37 case '\\':
38 case '(':
39 case ')':
40 case '<':
41 case '>':
42 case '"':
43 case ',':
44 case '~':
45 result->push_back('\\');
46 break;
47 case '.':
48 if (escape_dot) {
49 result->push_back('\\');
50 }
51 break;
52 }
53 result->push_back(c);
54 }
55}
56
57absl::Status AppendTypeParameters(std::string* result, const Type& type);
58

Callers 2

AppendTypeDescFunction · 0.85
MakeOverloadSignatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected