Home | History | Annotate | Download | only in libxml2

Lines Matching refs:cur

504     xmlEntityPtr cur;
510 cur = xmlGetEntityFromTable(table, name);
511 if (cur != NULL)
512 return(cur);
518 cur = xmlGetEntityFromTable(table, name);
519 if (cur != NULL)
520 return(cur);
555 const xmlChar *cur = input;
576 while (*cur != '\0') {
587 if (*cur == '<') {
592 } else if (*cur == '>') {
597 } else if (*cur == '&') {
603 cur >= 0x20) && (*cur < 0x80)) ||
604 (*cur == '\n') || (*cur == '\t') || ((html) && (*cur == '\r'))) {
608 *out++ = *cur;
609 } else if (*cur >= 0x80) {
614 xc = (*cur & 0x3F) << 6;
615 if (cur[1] != 0) {
616 xc += *(++cur) & 0x3F;
620 *out++ = *cur;
628 if (*cur < 0xC0) {
633 snprintf(buf, sizeof(buf), "&#%d;", *cur);
637 cur++;
639 } else if (*cur < 0xE0) {
640 val = (cur[0]) & 0x1F;
642 val |= (cur[1]) & 0x3F;
644 } else if (*cur < 0xF0) {
645 val = (cur[0]) & 0x0F;
647 val |= (cur[1]) & 0x3F;
649 val |= (cur[2]) & 0x3F;
651 } else if (*cur < 0xF8) {
652 val = (cur[0]) & 0x07;
654 val |= (cur[1]) & 0x3F;
656 val |= (cur[2]) & 0x3F;
658 val |= (cur[3]) & 0x3F;
666 snprintf(buf, sizeof(buf), "&#%d;", *cur);
670 cur++;
680 cur += l;
683 } else if (IS_BYTE_CHAR(*cur)) {
686 snprintf(buf, sizeof(buf), "&#%d;", *cur);
691 cur++;
709 const xmlChar *cur = input;
726 while (*cur != '\0') {
737 if (*cur == '<') {
742 } else if (*cur == '>') {
747 } else if (*cur == '&') {
753 } else if (*cur == '"') {
760 } else if (*cur == '\r') {
771 *out++ = *cur;
773 cur++;
828 xmlEntityPtr cur;
830 cur = (xmlEntityPtr) xmlMalloc(sizeof(xmlEntity));
831 if (cur == NULL) {
835 memset(cur, 0, sizeof(xmlEntity));
836 cur->type = XML_ENTITY_DECL;
838 cur->etype = ent->etype;
840 cur->name = xmlStrdup(ent->name);
842 cur->ExternalID = xmlStrdup(ent->ExternalID);
844 cur->SystemID = xmlStrdup(ent->SystemID);
846 cur->content = xmlStrdup(ent->content);
848 cur->orig = xmlStrdup(ent->orig);
850 cur->URI = xmlStrdup(ent->URI);
851 return(cur);
882 const xmlChar * base, *cur;
885 base = cur = content;
886 while (*cur != 0) {
887 if (*cur == '"') {
888 if (base != cur)
889 xmlBufferAdd(buf, base, cur - base);
891 cur++;
892 base = cur;
893 } else if (*cur == '%') {
894 if (base != cur)
895 xmlBufferAdd(buf, base, cur - base);
897 cur++;
898 base = cur;
900 cur++;
903 if (base != cur)
904 xmlBufferAdd(buf, base, cur - base);