| 14 | }; |
| 15 | |
| 16 | void 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 | |
| 33 | bool unescape(const char* in, size_t len, acl::string& out) |
| 34 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…