MCPcopy Create free account
hub / github.com/acl-dev/acl / escape

Function escape

lib_acl_cpp/src/stdlib/escape.cpp:16–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14};
15
16void escape(const char* in, size_t len, acl::string& out)
17{
18 char ch;
19
20 while (len > 0) {
21 ch = *in;
22 if (ch >= noescape_min) {
23 out << ch;
24 } else {
25 out << (char) escape_prefix;
26 out << (char) (ch + escape_shift);
27 }
28 in++;
29 len--;
30 }
31}
32
33bool unescape(const char* in, size_t len, acl::string& out)
34{

Callers 3

build_requestMethod · 0.50
serializeMethod · 0.50
append_keyMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…