| 131 | } |
| 132 | |
| 133 | static void rfc2047_test_encode(const char* s) |
| 134 | { |
| 135 | acl::string out; |
| 136 | acl::rfc2047 rfc2047(false, false); |
| 137 | |
| 138 | rfc2047.encode_update(s, (int) strlen(s), &out); |
| 139 | rfc2047.encode_update(s, (int) strlen(s), &out, "gb2312", 'Q'); |
| 140 | rfc2047.encode_finish(&out); |
| 141 | printf("rfc2047 encoding result: %s\n", out.c_str()); |
| 142 | } |
| 143 | |
| 144 | static void rfc2047_test_file(acl::rfc2047& rfc2047, const char* filepath) |
| 145 | { |
no test coverage detected
searching dependent graphs…