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

Function unescape

lib_acl_cpp/src/stdlib/escape.cpp:33–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33bool unescape(const char* in, size_t len, acl::string& out)
34{
35 char ch;
36
37 while (len > 0) {
38 ch = *in;
39 if (ch != escape_prefix) {
40 out << ch;
41 } else if (*++in == 0) {
42 return false;
43 } else {
44 ch = *in;
45 if (ch < escape_shift) {
46 return false;
47 }
48 ch -= escape_shift;
49 out << ch;
50 }
51 in++;
52 len--;
53 }
54
55 return true;
56}
57
58} // namespace acl

Callers 4

dict_test1Function · 0.50
dict_test2Function · 0.50
push_backMethod · 0.50
acl_foreachFunction · 0.50

Calls

no outgoing calls

Tested by 2

dict_test1Function · 0.40
dict_test2Function · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…