Lines Matching defs:cur
252 if (in->cur < in->base) {
254 "xmlParserInput: cur < base problem\n");
256 if (in->cur > in->base + xmlBufUse(in->buf->buffer)) {
258 "xmlParserInput: cur > base + use problem\n");
260 xmlGenericError(xmlGenericErrorContext,"buffer %x : content %x, cur %d, use %d\n",
261 (int) in, (int) xmlBufContent(in->buf->buffer), in->cur - in->base,
307 if (in->cur == NULL) return(-1);
312 indx = in->cur - in->base;
336 indx = in->cur - in->base;
338 in->cur = &content[indx];
366 if (in->cur == NULL) return;
371 used = in->cur - xmlBufContent(in->buf->buffer);
379 in->cur -= ret;
396 indx = in->cur - in->base;
398 in->cur = &content[indx];
426 if ((*ctxt->input->cur == 0) &&
437 const unsigned char *cur;
446 if (*(ctxt->input->cur) == '\n') {
462 cur = ctxt->input->cur;
464 c = *cur;
468 if (cur[1] == 0) {
470 cur = ctxt->input->cur;
472 if ((cur[1] & 0xc0) != 0x80)
477 if (cur[2] == 0) {
479 cur = ctxt->input->cur;
481 if ((cur[2] & 0xc0) != 0x80)
484 if (cur[3] == 0) {
486 cur = ctxt->input->cur;
489 ((cur[3] & 0xc0) != 0x80))
492 ctxt->input->cur += 4;
493 val = (cur[0] & 0x7) << 18;
494 val |= (cur[1] & 0x3f) << 12;
495 val |= (cur[2] & 0x3f) << 6;
496 val |= cur[3] & 0x3f;
499 ctxt->input->cur += 3;
500 val = (cur[0] & 0xf) << 12;
501 val |= (cur[1] & 0x3f) << 6;
502 val |= cur[2] & 0x3f;
513 ctxt->input->cur += 2;
516 ctxt->input->cur++;
519 if (*ctxt->input->cur == 0)
529 if (*(ctxt->input->cur) == '\n') {
533 ctxt->input->cur++;
535 if (*ctxt->input->cur == 0)
538 if ((*ctxt->input->cur == '%') && (!ctxt->html))
540 if ((*ctxt->input->cur == 0) &&
553 (ctxt->input->end - ctxt->input->cur < 4)) {
561 ctxt->input->cur[0], ctxt->input->cur[1],
562 ctxt->input->cur[2], ctxt->input->cur[3]);
568 ctxt->input->cur++;
596 if ((*ctxt->input->cur >= 0x20) && (*ctxt->input->cur <= 0x7F)) {
598 return((int) *ctxt->input->cur);
612 const unsigned char *cur = ctxt->input->cur;
616 c = *cur;
620 if (cur[1] == 0) {
622 cur = ctxt->input->cur;
624 if ((cur[1] & 0xc0) != 0x80)
627 if (cur[2] == 0) {
629 cur = ctxt->input->cur;
631 if ((cur[2] & 0xc0) != 0x80)
634 if (cur[3] == 0) {
636 cur = ctxt->input->cur;
639 ((cur[3] & 0xc0) != 0x80))
643 val = (cur[0] & 0x7) << 18;
644 val |= (cur[1] & 0x3f) << 12;
645 val |= (cur[2] & 0x3f) << 6;
646 val |= cur[3] & 0x3f;
652 val = (cur[0] & 0xf) << 12;
653 val |= (cur[1] & 0x3f) << 6;
654 val |= cur[2] & 0x3f;
661 val = (cur[0] & 0x1f) << 6;
662 val |= cur[1] & 0x3f;
674 if (*ctxt->input->cur == 0)
676 if ((*ctxt->input->cur == 0) &&
677 (ctxt->input->end > ctxt->input->cur)) {
681 if (*ctxt->input->cur == 0xD) {
682 if (ctxt->input->cur[1] == 0xA) {
684 ctxt->input->cur++;
688 return((int) *ctxt->input->cur);
697 if (*ctxt->input->cur == 0xD) {
698 if (ctxt->input->cur[1] == 0xA) {
700 ctxt->input->cur++;
704 return((int) *ctxt->input->cur);
711 if (ctxt->input->end - ctxt->input->cur < 4) {
727 ctxt->input->cur[0], ctxt->input->cur[1],
728 ctxt->input->cur[2], ctxt->input->cur[3]);
735 return((int) *ctxt->input->cur);
741 * @cur: pointer to the beginning of the char
751 xmlStringCurrentChar(xmlParserCtxtPtr ctxt, const xmlChar * cur, int *len)
753 if ((len == NULL) || (cur == NULL)) return(0);
769 c = *cur;
771 if ((cur[1] & 0xc0) != 0x80)
775 if ((cur[2] & 0xc0) != 0x80)
778 if (((c & 0xf8) != 0xf0) || ((cur[3] & 0xc0) != 0x80))
782 val = (cur[0] & 0x7) << 18;
783 val |= (cur[1] & 0x3f) << 12;
784 val |= (cur[2] & 0x3f) << 6;
785 val |= cur[3] & 0x3f;
789 val = (cur[0] & 0xf) << 12;
790 val |= (cur[1] & 0x3f) << 6;
791 val |= cur[2] & 0x3f;
796 val = (cur[0] & 0x1f) << 6;
797 val |= cur[1] & 0x3f;
807 return ((int) *cur);
816 return ((int) *cur);
825 (ctxt->input->end - ctxt->input->cur < 4)) {
840 ctxt->input->cur[0], ctxt->input->cur[1],
841 ctxt->input->cur[2], ctxt->input->cur[3]);
847 return ((int) *cur);
962 (ctxt->input->cur[0] == 0xEF) &&
963 (ctxt->input->cur[1] == 0xBB) &&
964 (ctxt->input->cur[2] == 0xBF)) {
965 ctxt->input->cur += 3;
973 *ctxt->input->cur to contain UTF-8 encoded characters.
978 if ((ctxt->input != NULL) && (ctxt->input->cur != NULL) &&
979 (ctxt->input->cur[0] == 0xEF) &&
980 (ctxt->input->cur[1] == 0xBB) &&
981 (ctxt->input->cur[2] == 0xBF)) {
982 ctxt->input->cur += 3;
1178 (input->cur[0] == 0xFF) && (input->cur[1] == 0xFE)) {
1179 input->cur += 2;
1183 (input->cur[0] == 0xFE) && (input->cur[1] == 0xFF)) {
1184 input->cur += 2;
1193 (input->cur[0] == 0xEF) &&
1194 (input->cur[1] == 0xBB) && (input->cur[2] == 0xBF)) {
1195 input->cur += 3;
1202 processed = input->cur - input->base;
1464 input->cur = entity->content;
1496 input->cur = buffer;
1798 xmlNodePtr cur, next;
1800 cur = ctxt->freeElems;
1801 while (cur != NULL) {
1802 next = cur->next;
1803 xmlFree(cur);
1804 cur = next;
1808 xmlAttrPtr cur, next;
1810 cur = ctxt->freeAttrs;
1811 while (cur != NULL) {
1812 next = cur->next;
1813 xmlFree(cur);
1814 cur = next;