MCPcopy Create free account
hub / github.com/apache/httpd / c2x

Function c2x

server/util.c:2022–2032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2020static const char c2x_table[] = "0123456789abcdef";
2021
2022static 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

Callers 5

ap_os_escape_pathFunction · 0.70
ap_escape_logitemFunction · 0.70
ap_escape_errorlog_itemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected