* Return the appropriate encoding function depending on the flags given. */
| 318 | * Return the appropriate encoding function depending on the flags given. |
| 319 | */ |
| 320 | static visfun_t |
| 321 | getvisfun(int flags) |
| 322 | { |
| 323 | if (flags & VIS_HTTPSTYLE) |
| 324 | return do_hvis; |
| 325 | if (flags & VIS_MIMESTYLE) |
| 326 | return do_mvis; |
| 327 | return do_svis; |
| 328 | } |
| 329 | |
| 330 | /* |
| 331 | * Expand list of extra characters to not visually encode. |