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

Function main

lib_acl/samples/urlcode/main.cpp:26–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26int 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}

Callers

nothing calls this directly

Calls 6

test_urlcodeFunction · 0.85
acl_vstring_allocFunction · 0.85
acl_html_decodeFunction · 0.85
acl_xml_decodeFunction · 0.85
acl_html_encodeFunction · 0.85
acl_vstring_freeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…