Lines Matching defs:cur
448 xmlEntityPtr cur;
454 cur = xmlGetEntityFromTable(table, name);
455 if (cur != NULL)
456 return(cur);
462 cur = xmlGetEntityFromTable(table, name);
463 if (cur != NULL)
464 return(cur);
499 const xmlChar *cur = input;
520 while (*cur != '\0') {
531 if (*cur == '<') {
536 } else if (*cur == '>') {
541 } else if (*cur == '&') {
547 } else if (((*cur >= 0x20) && (*cur < 0x80)) ||
548 (*cur == '\n') || (*cur == '\t') || ((html) && (*cur == '\r'))) {
552 *out++ = *cur;
553 } else if (*cur >= 0x80) {
558 xc = (*cur & 0x3F) << 6;
559 if (cur[1] != 0) {
560 xc += *(++cur) & 0x3F;
564 *out++ = *cur;
572 if (*cur < 0xC0) {
577 snprintf(buf, sizeof(buf), "&#%d;", *cur);
581 cur++;
583 } else if (*cur < 0xE0) {
584 val = (cur[0]) & 0x1F;
586 val |= (cur[1]) & 0x3F;
588 } else if (*cur < 0xF0) {
589 val = (cur[0]) & 0x0F;
591 val |= (cur[1]) & 0x3F;
593 val |= (cur[2]) & 0x3F;
595 } else if (*cur < 0xF8) {
596 val = (cur[0]) & 0x07;
598 val |= (cur[1]) & 0x3F;
600 val |= (cur[2]) & 0x3F;
602 val |= (cur[3]) & 0x3F;
610 snprintf(buf, sizeof(buf), "&#%d;", *cur);
614 cur++;
624 cur += l;
627 } else if (IS_BYTE_CHAR(*cur)) {
630 snprintf(buf, sizeof(buf), "&#%d;", *cur);
635 cur++;
658 const xmlChar *cur = input;
675 while (*cur != '\0') {
686 if (*cur == '<') {
691 } else if (*cur == '>') {
696 } else if (*cur == '&') {
702 } else if (*cur == '"') {
709 } else if (*cur == '\r') {
720 *out++ = *cur;
722 cur++;
782 xmlEntityPtr cur;
784 cur = (xmlEntityPtr) xmlMalloc(sizeof(xmlEntity));
785 if (cur == NULL) {
789 memset(cur, 0, sizeof(xmlEntity));
790 cur->type = XML_ENTITY_DECL;
792 cur->etype = ent->etype;
794 cur->name = xmlStrdup(ent->name);
796 cur->ExternalID = xmlStrdup(ent->ExternalID);
798 cur->SystemID = xmlStrdup(ent->SystemID);
800 cur->content = xmlStrdup(ent->content);
802 cur->orig = xmlStrdup(ent->orig);
804 cur->URI = xmlStrdup(ent->URI);
805 return(cur);
836 const xmlChar * base, *cur;
839 base = cur = content;
840 while (*cur != 0) {
841 if (*cur == '"') {
842 if (base != cur)
843 xmlBufferAdd(buf, base, cur - base);
845 cur++;
846 base = cur;
847 } else if (*cur == '%') {
848 if (base != cur)
849 xmlBufferAdd(buf, base, cur - base);
851 cur++;
852 base = cur;
854 cur++;
857 if (base != cur)
858 xmlBufferAdd(buf, base, cur - base);