| 191 | } |
| 192 | |
| 193 | int main(void) |
| 194 | { |
| 195 | const char *src = "%E4%B8%AD%E5%9B%BD%0A%E4%B8%AD%E5%9B%BD%0A%E4%B8%AD%E5%9B%BD"; |
| 196 | /* |
| 197 | char buf[256], *dst; |
| 198 | */ |
| 199 | char *dst; |
| 200 | |
| 201 | if (0) { |
| 202 | create_map1(); |
| 203 | return (0); |
| 204 | } else if (1) { |
| 205 | create_map2(); |
| 206 | return (0); |
| 207 | } else if (2) { |
| 208 | test_map2(); |
| 209 | return (0); |
| 210 | } |
| 211 | |
| 212 | printf("src(%s)\n", src); |
| 213 | dst = acl_url_decode(src, NULL); |
| 214 | printf("dst(%s)\n", dst); |
| 215 | |
| 216 | /* |
| 217 | if (acl_utf8_to_gb2312(dst, strlen(dst), buf, sizeof(buf)) > 0) |
| 218 | printf("ok, buf(%s)\n", buf); |
| 219 | else |
| 220 | printf("error\n"); |
| 221 | |
| 222 | src = "中国"; |
| 223 | if (acl_utf8_to_gb2312(src, strlen(src), buf, sizeof(buf)) > 0) |
| 224 | printf("ok, buf(%s)\n", buf); |
| 225 | else |
| 226 | printf("error\n"); |
| 227 | */ |
| 228 | return (0); |
| 229 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…