Lines Matching defs:ch
121 int ch = x[0];
123 if (apr_isdigit(ch)) {
124 i = ch - '0';
126 else if (apr_isupper(ch)) {
127 i = ch - ('A' - 10);
130 i = ch - ('a' - 10);
134 ch = x[1];
135 if (apr_isdigit(ch)) {
136 i += ch - '0';
138 else if (apr_isupper(ch)) {
139 i += ch - ('A' - 10);
142 i += ch - ('a' - 10);
171 PROXY_DECLARE(void) ap_proxy_c2hex(int ch, char *x)
177 i = (ch & 0xF0) >> 4;
185 i = ch & 0x0F;
196 ch &= 0xFF;
198 buf[0] = ch;
222 int i, j, ch;
265 ch = x[i];
266 if (strchr(reserved, ch)) {
267 y[j] = ch;
274 if ((forcedec || (proxyreq && proxyreq != PROXYREQ_REVERSE)) && ch == '%') {
278 ch = ap_proxy_hex2c(&x[i + 1]);
280 if (ch != 0 && strchr(reserved, ch)) { /* keep it encoded */
281 ap_proxy_c2hex(ch, &y[j]);
287 if (!apr_isalnum(ch) && !strchr(allowed, ch)) {
288 ap_proxy_c2hex(ch, &y[j]);
292 y[j] = ch;