Lines Matching defs:cptr
9252 xmlChar *cptr;
9266 for (cptr = str->stringval; (ch=*cptr); ) {
9267 offset = xmlUTF8Strloc(from->stringval, cptr);
9275 xmlBufferAdd(target, cptr, xmlUTF8Strsize(cptr, 1));
9278 cptr++;
9288 if ( (*cptr++ & 0xc0) != 0x80 ) {
15008 xmlChar *cptr;
15024 for (cptr = str->stringval; *cptr; cptr++) {
15025 if ((*cptr >= 'A' && *cptr <= 'Z') ||
15026 (*cptr >= 'a' && *cptr <= 'z') ||
15027 (*cptr >= '0' && *cptr <= '9') ||
15028 *cptr == '-' || *cptr == '_' || *cptr == '.' ||
15029 *cptr == '!' || *cptr == '~' || *cptr == '*' ||
15030 *cptr == '\''|| *cptr == '(' || *cptr == ')' ||
15031 (*cptr == '%' &&
15032 ((cptr[1] >= 'A' && cptr[1] <= 'F') ||
15033 (cptr[1] >= 'a' && cptr[1] <= 'f') ||
15034 (cptr[1] >= '0' && cptr[1] <= '9')) &&
15035 ((cptr[2] >= 'A' && cptr[2] <= 'F') ||
15036 (cptr[2] >= 'a' && cptr[2] <= 'f') ||
15037 (cptr[2] >= '0' && cptr[2] <= '9'))) ||
15039 (*cptr == ';' || *cptr == '/' || *cptr == '?' ||
15040 *cptr == ':' || *cptr == '@' || *cptr == '&' ||
15041 *cptr == '=' || *cptr == '+' || *cptr == '$' ||
15042 *cptr == ','))) {
15043 xmlBufferAdd(target, cptr, 1);
15045 if ((*cptr >> 4) < 10)
15046 escape[1] = '0' + (*cptr >> 4);
15048 escape[1] = 'A' - 10 + (*cptr >> 4);
15049 if ((*cptr & 0xF) < 10)
15050 escape[2] = '0' + (*cptr & 0xF);
15052 escape[2] = 'A' - 10 + (*cptr & 0xF);