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

Function ap_str2_alnum

server/util.c:2717–2731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2715}
2716
2717AP_DECLARE(apr_status_t) ap_str2_alnum(const char *src, char *dest) {
2718
2719 for ( ; *src; src++, dest++)
2720 {
2721 if (!apr_isprint(*src))
2722 *dest = 'x';
2723 else if (!apr_isalnum(*src))
2724 *dest = '_';
2725 else
2726 *dest = (char)*src;
2727 }
2728 *dest = '\0';
2729 return APR_SUCCESS;
2730
2731}
2732
2733AP_DECLARE(apr_status_t) ap_pstr2_alnum(apr_pool_t *p, const char *src,
2734 const char **dest)

Callers 1

ap_pstr2_alnumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected