We already have ap_str_tolower(), so also add ap_str_toupper() function and use

it where possible.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1138617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Fritsch
2011-06-22 20:24:27 +00:00
parent bde65f90cb
commit 255f723fef
7 changed files with 19 additions and 34 deletions

View File

@ -831,13 +831,8 @@ static const char *tolower_func(ap_expr_eval_ctx_t *ctx, const void *data,
static const char *toupper_func(ap_expr_eval_ctx_t *ctx, const void *data,
const char *arg)
{
char *p;
char *result = apr_pstrdup(ctx->p, arg);
for (p = result; *p; ++p) {
*p = apr_toupper(*p);
}
ap_str_toupper(result);
return result;
}