| 24 | } |
| 25 | |
| 26 | int main(void) |
| 27 | { |
| 28 | test_urlcode(); |
| 29 | printf(">>\\r: %d, \\n: %d\r\n", (int) '\r', (int) '\n'); |
| 30 | |
| 31 | const char* s = "hello world! "; |
| 32 | ACL_VSTRING* buf = acl_vstring_alloc(100), |
| 33 | * buf2 = acl_vstring_alloc(100); |
| 34 | acl_html_decode(s, buf); |
| 35 | printf("{%s}\r\n", acl_vstring_str(buf)); |
| 36 | |
| 37 | ACL_VSTRING_RESET(buf); |
| 38 | acl_xml_decode(s, buf); |
| 39 | printf("{%s}\r\n", acl_vstring_str(buf)); |
| 40 | |
| 41 | acl_html_encode(acl_vstring_str(buf), buf2); |
| 42 | printf("encode: %s\r\n", acl_vstring_str(buf2)); |
| 43 | |
| 44 | acl_vstring_free(buf); |
| 45 | acl_vstring_free(buf2); |
| 46 | |
| 47 | getchar(); |
| 48 | return (0); |
| 49 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…