| 2020 | static const char c2x_table[] = "0123456789abcdef"; |
| 2021 | |
| 2022 | static APR_INLINE unsigned char *c2x(unsigned what, unsigned char prefix, |
| 2023 | unsigned char *where) |
| 2024 | { |
| 2025 | #if APR_CHARSET_EBCDIC |
| 2026 | what = apr_xlate_conv_byte(ap_hdrs_to_ascii, (unsigned char)what); |
| 2027 | #endif /*APR_CHARSET_EBCDIC*/ |
| 2028 | *where++ = prefix; |
| 2029 | *where++ = c2x_table[what >> 4]; |
| 2030 | *where++ = c2x_table[what & 0xf]; |
| 2031 | return where; |
| 2032 | } |
| 2033 | |
| 2034 | /* |
| 2035 | * escape_path_segment() escapes a path segment, as defined in RFC 1808. This |
no outgoing calls
no test coverage detected