Lines Matching refs:cur
134 (ctxt->input->cur - ctxt->input->base);
152 (ctxt->input->cur - ctxt->input->base);
1048 const xmlChar *cur;
1056 cur = src;
1057 while (*cur == 0x20) {
1058 cur++;
1061 while (*cur != 0) {
1062 if (*cur == 0x20) {
1063 cur++;
1064 if ((*cur == 0x20) || (*cur == 0)) {
1069 cur++;
1294 const xmlChar *cur = lang;
1296 if (cur == NULL)
1298 if (((cur[0] == 'i') && (cur[1] == '-')) ||
1299 ((cur[0] == 'I') && (cur[1] == '-'))) {
1303 cur += 2;
1304 while (((cur[0] >= 'A') && (cur[0] <= 'Z')) || /* non input consuming */
1305 ((cur[0] >= 'a') && (cur[0] <= 'z')))
1306 cur++;
1307 } else if (((cur[0] == 'x') && (cur[1] == '-')) ||
1308 ((cur[0] == 'X') && (cur[1] == '-'))) {
1312 cur += 2;
1313 while (((cur[0] >= 'A') && (cur[0] <= 'Z')) || /* non input consuming */
1314 ((cur[0] >= 'a') && (cur[0] <= 'z')))
1315 cur++;
1316 } else if (((cur[0] >= 'A') && (cur[0] <= 'Z')) ||
1317 ((cur[0] >= 'a') && (cur[0] <= 'z'))) {
1321 cur++;
1322 if (((cur[0] >= 'A') && (cur[0] <= 'Z')) ||
1323 ((cur[0] >= 'a') && (cur[0] <= 'z')))
1324 cur++;
1329 while (cur[0] != 0) { /* non input consuming */
1330 if (cur[0] != '-')
1332 cur++;
1333 if (((cur[0] >= 'A') && (cur[0] <= 'Z')) ||
1334 ((cur[0] >= 'a') && (cur[0] <= 'z')))
1335 cur++;
1338 while (((cur[0] >= 'A') && (cur[0] <= 'Z')) || /* non input consuming */
1339 ((cur[0] >= 'a') && (cur[0] <= 'z')))
1340 cur++;
1767 * CUR returns the current xmlChar value, i.e. a 8 bit value if compiled
1771 * RAW same as CUR but in the input buffer, bypass any token
1773 * NXT(n) returns the n'th next xmlChar. Same as CUR is should be used only
1792 #define RAW (*ctxt->input->cur)
1793 #define CUR (*ctxt->input->cur)
1794 #define NXT(val) ctxt->input->cur[(val)]
1795 #define CUR_PTR ctxt->input->cur
1816 ctxt->nbChars += (val),ctxt->input->cur += (val),ctxt->input->col+=(val); \
1817 if (*ctxt->input->cur == '%') xmlParserHandlePEReference(ctxt); \
1818 if ((*ctxt->input->cur == 0) && \
1826 if (*(ctxt->input->cur) == '\n') { \
1830 ctxt->input->cur++; \
1832 if (*ctxt->input->cur == '%') xmlParserHandlePEReference(ctxt); \
1833 if ((*ctxt->input->cur == 0) && \
1839 (ctxt->input->cur - ctxt->input->base > 2 * INPUT_CHUNK) && \
1840 (ctxt->input->end - ctxt->input->cur < 2 * INPUT_CHUNK)) \
1845 if ((*ctxt->input->cur == 0) &&
1851 (ctxt->input->end - ctxt->input->cur < INPUT_CHUNK)) \
1856 if ((*ctxt->input->cur == 0) &&
1867 ctxt->input->cur++; \
1869 if (*ctxt->input->cur == 0) \
1874 if (*(ctxt->input->cur) == '\n') { \
1877 ctxt->input->cur += l; \
1878 if (*ctxt->input->cur == '%') xmlParserHandlePEReference(ctxt); \
1903 * It's Okay to use CUR/NEXT here since all the blanks are on
1907 const xmlChar *cur;
1911 cur = ctxt->input->cur;
1912 while (IS_BLANK_CH(*cur)) {
1913 if (*cur == '\n') {
1916 cur++;
1918 if (*cur == 0) {
1919 ctxt->input->cur = cur;
1921 cur = ctxt->input->cur;
1924 ctxt->input->cur = cur;
1926 int cur;
1928 cur = CUR;
1929 while (IS_BLANK_CH(cur)) { /* CHECKED tstblanks.xml */
1931 cur = CUR;
1934 while ((cur == 0) && (ctxt->inputNr > 1) &&
1937 cur = CUR;
1942 if (*ctxt->input->cur == '%') xmlParserHandlePEReference(ctxt);
1943 } while (IS_BLANK(cur)); /* CHECKED tstblanks.xml */
1970 if ((*ctxt->input->cur == 0) &&
1973 return(CUR);
1996 "Pushing input %d : %.30s\n", ctxt->inputNr+1, input->cur);
2025 * Using RAW/CUR/NEXT is okay since we are working on ASCII range here
2037 val = val * 16 + (CUR - '0');
2039 val = val * 16 + (CUR - 'a') + 10;
2041 val = val * 16 + (CUR - 'A') + 10;
2057 ctxt->input->cur++;
2068 val = val * 10 + (CUR - '0');
2084 ctxt->input->cur++;
2126 xmlChar cur;
2132 cur = *ptr;
2133 if ((cur == '&') && (ptr[1] == '#') && (ptr[2] == 'x')) {
2135 cur = *ptr;
2136 while (cur != ';') { /* Non input consuming loop */
2137 if ((cur >= '0') && (cur <= '9'))
2138 val = val * 16 + (cur - '0');
2139 else if ((cur >= 'a') && (cur <= 'f'))
2140 val = val * 16 + (cur - 'a') + 10;
2141 else if ((cur >= 'A') && (cur <= 'F'))
2142 val = val * 16 + (cur - 'A') + 10;
2152 cur = *ptr;
2154 if (cur == ';')
2156 } else if ((cur == '&') && (ptr[1] == '#')){
2158 cur = *ptr;
2159 while (cur != ';') { /* Non input consuming loops */
2160 if ((cur >= '0') && (cur <= '9'))
2161 val = val * 10 + (cur - '0');
2171 cur = *ptr;
2173 if (cur == ';')
2241 input->cur = buffer;
2414 if ((ctxt->input->end - ctxt->input->cur)>=4) {
2569 const xmlChar *cur = ent->name;
2576 buffer[nbchars++] = *cur++;
2768 const xmlChar *cur = name;
2774 if (cur == NULL) return(NULL);
2778 if ((cur[0] == 'x') && (cur[1] == 'm') &&
2779 (cur[2] == 'l') && (cur[3] == ':'))
2784 if (cur[0] == ':')
2787 c = *cur++;
2790 c = *cur++;
2820 c = *cur++;
2825 if ((c == ':') && (*cur == 0)) {
2842 c = *cur;
2857 int first = CUR_SCHAR(cur, l);
2865 cur++;
2869 c = *cur++;
2899 c = *cur++;
3108 if ((*ctxt->input->cur == '\n') && (ctxt->input->cur[-1] == '\r'))
3109 return(xmlDictLookup(ctxt->dict, ctxt->input->cur - (len + 1), len));
3110 return(xmlDictLookup(ctxt->dict, ctxt->input->cur - len, len));
3142 in = ctxt->input->cur;
3154 count = in - ctxt->input->cur;
3155 ret = xmlDictLookup(ctxt->dict, ctxt->input->cur, count);
3156 ctxt->input->cur = in;
3196 return(xmlDictLookup(ctxt->dict, ctxt->input->cur - len, len));
3225 in = ctxt->input->cur;
3237 count = in - ctxt->input->cur;
3238 ret = xmlDictLookup(ctxt->dict, ctxt->input->cur, count);
3239 ctxt->input->cur = in;
3270 in = ctxt->input->cur;
3278 ctxt->input->cur = in;
3311 const xmlChar *cur = *str;
3317 c = CUR_SCHAR(cur, l);
3323 cur += l;
3324 c = CUR_SCHAR(cur, l);
3327 cur += l;
3328 c = CUR_SCHAR(cur, l);
3357 cur += l;
3358 c = CUR_SCHAR(cur, l);
3361 *str = cur;
3365 *str = cur;
3468 const xmlChar *cur = NULL;
3537 cur = buf;
3538 while (*cur != 0) { /* non input consuming */
3539 if ((*cur == '%') || ((*cur == '&') && (cur[1] != '#'))) {
3541 xmlChar tmp = *cur;
3543 cur++;
3544 name = xmlParseStringName(ctxt, &cur);
3545 if ((name == NULL) || (*cur != ';')) {
3556 if (*cur == 0)
3559 cur++;
3714 const xmlChar *cur = ent->name;
3738 buf[len++] = *cur++;
3849 int cur, l;
3872 cur = CUR_CHAR(l);
3873 while ((IS_CHAR(cur)) && (cur != stop)) { /* checked */
3892 COPY_BUF(l,buf,len,cur);
3894 cur = CUR_CHAR(l);
3895 if (cur == 0) {
3898 cur = CUR_CHAR(l);
3903 if (!IS_CHAR(cur)) {
3927 xmlChar cur;
3949 cur = CUR;
3950 while ((IS_PUBIDCHAR_CH(cur)) && (cur != stop)) { /* checked */
3963 buf[len++] = cur;
3970 cur = CUR;
3971 if (cur == 0) {
3974 cur = CUR;
3978 if (cur != stop) {
4058 in = ctxt->input->cur;
4070 nbchar = in - ctxt->input->cur;
4072 const xmlChar *tmp = ctxt->input->cur;
4073 ctxt->input->cur = in;
4115 ctxt->input->cur = in;
4122 nbchar = in - ctxt->input->cur;
4127 (IS_BLANK_CH(*ctxt->input->cur))) {
4128 const xmlChar *tmp = ctxt->input->cur;
4129 ctxt->input->cur = in;
4147 ctxt->input->cur, nbchar);
4155 ctxt->input->cur = in;
4159 ctxt->input->cur = in;
4174 in = ctxt->input->cur;
4196 int cur, l;
4201 cur = CUR_CHAR(l);
4202 while ((cur != '<') && /* checked */
4203 (cur != '&') &&
4204 (IS_CHAR(cur))) /* test also done in xmlCurrentChar() */ {
4205 if ((cur == ']') && (NXT(1) == ']') &&
4212 COPY_BUF(l,buf,nbchar,cur);
4244 cur = CUR_CHAR(l);
4264 if ((cur != 0) && (!IS_CHAR(cur))) {
4268 cur);
4304 if (!IS_BLANK_CH(CUR)) {
4315 if (!IS_BLANK_CH(CUR)) {
4328 if (!IS_BLANK_CH(CUR)) {
4374 int cur, l;
4412 cur = CUR_CHAR(l);
4413 if (cur == 0)
4415 while (IS_CHAR(cur) && /* checked */
4416 ((cur != '>') ||
4435 r = cur;
4444 cur = CUR_CHAR(l);
4445 if (cur == 0) {
4448 cur = CUR_CHAR(l);
4452 if (cur == 0) {
4455 } else if (!IS_CHAR(cur)) {
4458 cur);
4514 in = ctxt->input->cur;
4538 nbchar = in - ctxt->input->cur;
4570 memcpy(&buf[len], ctxt->input->cur, nbchar);
4575 ctxt->input->cur = in;
4583 ctxt->input->cur = in;
4592 in = ctxt->input->cur;
4758 int cur, l;
4802 cur = CUR;
4803 if (!IS_BLANK(cur)) {
4808 cur = CUR_CHAR(l);
4809 while (IS_CHAR(cur) && /* checked */
4810 ((cur != '?') || (NXT(1) != '>'))) {
4829 COPY_BUF(l,buf,len,cur);
4831 cur = CUR_CHAR(l);
4832 if (cur == 0) {
4835 cur = CUR_CHAR(l);
4839 if (cur != '?') {
4903 if (!IS_BLANK_CH(CUR)) {
4915 if (!IS_BLANK_CH(CUR)) {
5126 if ((RAW != '>') && (!IS_BLANK_CH(CUR))) {
5133 if (!IS_BLANK_CH(CUR)) {
5190 xmlEntityPtr cur = NULL;
5195 cur = ctxt->sax->getParameterEntity(ctxt->userData, name);
5199 cur = ctxt->sax->getEntity(ctxt->userData, name);
5200 if ((cur == NULL) && (ctxt->userData==ctxt)) {
5201 cur = xmlSAX2GetEntity(ctxt, name);
5204 if (cur != NULL) {
5205 if (cur->orig != NULL)
5208 cur->orig = orig;
5265 if (!IS_BLANK_CH(CUR)) {
5301 xmlEnumerationPtr ret = NULL, last = NULL, cur, tmp;
5330 cur = xmlCreateEnumeration(name);
5331 if (cur == NULL) return(ret);
5332 if (last == NULL) ret = last = cur;
5334 last->next = cur;
5335 last = cur;
5368 xmlEnumerationPtr ret = NULL, last = NULL, cur, tmp;
5396 cur = xmlCreateEnumeration(name);
5399 if (cur == NULL) return(ret);
5400 if (last == NULL) ret = last = cur;
5402 last->next = cur;
5403 last = cur;
5435 if (!IS_BLANK_CH(CUR)) {
5547 if (!IS_BLANK_CH(CUR)) {
5575 if (!IS_BLANK_CH(CUR)) {
5588 if (!IS_BLANK_CH(CUR)) {
5610 if (!IS_BLANK_CH(CUR)) {
5681 xmlElementContentPtr ret = NULL, cur = NULL, n;
5706 ret = cur = xmlNewDocElementContent(ctxt->myDoc, NULL, XML_ELEMENT_CONTENT_PCDATA);
5714 ret->c1 = cur;
5715 if (cur != NULL)
5716 cur->parent = ret;
5717 cur = ret;
5724 cur->c2 = n;
5726 n->parent = cur;
5727 cur = n;
5734 xmlFreeDocElementContent(ctxt->myDoc, cur);
5742 cur->c2 = xmlNewDocElementContent(ctxt->myDoc, elem,
5744 if (cur->c2 != NULL)
5745 cur->c2->parent = cur;
5799 xmlElementContentPtr ret = NULL, cur = NULL, last = NULL, op = NULL;
5811 cur = ret = xmlParseElementChildrenContentDecl(ctxt, inputid);
5820 cur = ret = xmlNewDocElementContent(ctxt->myDoc, elem, XML_ELEMENT_CONTENT_ELEMENT);
5821 if (cur == NULL) {
5827 cur->ocur = XML_ELEMENT_CONTENT_OPT;
5830 cur->ocur = XML_ELEMENT_CONTENT_MULT;
5833 cur->ocur = XML_ELEMENT_CONTENT_PLUS;
5836 cur->ocur = XML_ELEMENT_CONTENT_ONCE;
5847 if (type == 0) type = CUR;
5852 else if (type != CUR) {
5875 ret = cur = op;
5877 cur->c2 = op;
5879 op->parent = cur;
5883 cur =op;
5887 if (type == 0) type = CUR;
5892 else if (type != CUR) {
5916 ret = cur = op;
5918 cur->c2 = op;
5920 op->parent = cur;
5924 cur =op;
5975 if ((cur != NULL) && (last != NULL)) {
5976 cur->c2 = last;
5978 last->parent = cur;
5998 cur = ret;
6003 while ((cur != NULL) && (cur->type == XML_ELEMENT_CONTENT_OR)) {
6004 if ((cur->c1 != NULL) &&
6005 ((cur->c1->ocur == XML_ELEMENT_CONTENT_OPT) ||
6006 (cur->c1->ocur == XML_ELEMENT_CONTENT_MULT)))
6007 cur->c1->ocur = XML_ELEMENT_CONTENT_ONCE;
6008 if ((cur->c2 != NULL) &&
6009 ((cur->c2->ocur == XML_ELEMENT_CONTENT_OPT) ||
6010 (cur->c2->ocur == XML_ELEMENT_CONTENT_MULT)))
6011 cur->c2->ocur = XML_ELEMENT_CONTENT_ONCE;
6012 cur = cur->c2;
6030 while ((cur != NULL) && (cur->type == XML_ELEMENT_CONTENT_OR)) {
6031 if ((cur->c1 != NULL) &&
6032 ((cur->c1->ocur == XML_ELEMENT_CONTENT_OPT) ||
6033 (cur->c1->ocur == XML_ELEMENT_CONTENT_MULT))) {
6034 cur->c1->ocur = XML_ELEMENT_CONTENT_ONCE;
6037 if ((cur->c2 != NULL) &&
6038 ((cur->c2->ocur == XML_ELEMENT_CONTENT_OPT) ||
6039 (cur->c2->ocur == XML_ELEMENT_CONTENT_MULT))) {
6040 cur->c2->ocur = XML_ELEMENT_CONTENT_ONCE;
6043 cur = cur->c2;
6121 if (!IS_BLANK_CH(CUR)) {
6134 if (!IS_BLANK_CH(CUR)) {
6258 } else if (IS_BLANK_CH(CUR)) {
6390 if (CUR == '<') {
6460 if (!IS_BLANK_CH(CUR)) {
6473 if (!IS_BLANK_CH(CUR)) {
6528 (ctxt->input->end - ctxt->input->cur >= 4)) {
6566 (RAW == '%') || IS_BLANK_CH(CUR)) {
6573 } else if (IS_BLANK_CH(CUR)) {
6898 xmlNodePtr nw = NULL, cur, firstChild = NULL;
6907 cur = ent->children;
6908 while (cur != NULL) {
6909 nw = xmlDocCopyNode(cur, ctxt->myDoc, 1);
6912 nw->_private = cur->_private;
6918 if (cur == ent->last) {
6931 cur = cur->next;
6938 xmlNodePtr nw = NULL, cur, next, last,
6946 cur = ent->children;
6950 while (cur != NULL) {
6951 next = cur->next;
6952 cur->next = NULL;
6953 cur->parent = NULL;
6954 nw = xmlDocCopyNode(cur, ctxt->myDoc, 1);
6957 nw->_private = cur->_private;
6959 firstChild = cur;
6962 xmlAddChild(ctxt->node, cur);
6964 if (cur == last)
6966 cur = next;
7215 xmlChar cur;
7221 cur = *ptr;
7222 if (cur != '&')
7226 cur = *ptr;
7562 while ((ctxt->input == input) && (ctxt->input->cur < ctxt->input->end) &&
7564 xmlBufferAdd(buf, ctxt->input->cur, l);
7573 if ((ctxt->input == input) && (ctxt->input->cur >= ctxt->input->end)) {
7623 xmlChar cur;
7629 cur = *ptr;
7630 if (cur != '%')
7633 cur = *ptr;
7641 cur = *ptr;
7642 if (cur != ';') {
8224 if (CUR == ':') {
8235 if (CUR == ':') {
8256 if (CUR == ':') {
8306 in = ctxt->input->cur;
8322 ctxt->input->cur = in;
8653 unsigned long cur;
8669 cur = ctxt->input->cur - ctxt->input->base;
8686 *tlen = ctxt->input->cur - ctxt->input->base - cur;
9053 ctxt->input->cur = ctxt->input->base + cur;
9089 if ((tlen > 0) && (xmlStrncmp(ctxt->input->cur, ctxt->name, tlen) == 0)) {
9090 if (ctxt->input->cur[tlen] == '>') {
9091 ctxt->input->cur += tlen + 1;
9094 ctxt->input->cur += tlen;
9161 int cur, l;
9185 cur = CUR_CHAR(l);
9191 while (IS_CHAR(cur) &&
9192 ((r != ']') || (s != ']') || (cur != '>'))) {
9208 s = cur;
9216 cur = CUR_CHAR(l);
9220 if (cur != '>') {
9257 const xmlChar *cur = ctxt->input->cur;
9262 if ((*cur == '<') && (cur[1] == '?')) {
9269 /* 2.6.0 test was *cur not RAW */
9277 else if ((*cur == '<') && (NXT(1) == '!') &&
9286 else if (*cur == '<') {
9295 else if (*cur == '&') {
9516 cur;
9523 cur = CUR;
9524 if (!((cur >= '0') && (cur <= '9'))) {
9528 buf[len++] = cur;
9530 cur=CUR;
9531 if (cur != '.') {
9535 buf[len++] = cur;
9537 cur=CUR;
9538 while ((cur >= '0') && (cur <= '9')) {
9551 buf[len++] = cur;
9553 cur=CUR;
9621 xmlChar cur;
9623 cur = CUR;
9624 if (((cur >= 'a') && (cur <= 'z')) ||
9625 ((cur >= 'A') && (cur <= 'Z'))) {
9632 buf[len++] = cur;
9634 cur = CUR;
9635 while (((cur >= 'a') && (cur <= 'z')) ||
9636 ((cur >= 'A') && (cur <= 'Z')) ||
9637 ((cur >= '0') && (cur <= '9')) ||
9638 (cur == '.') || (cur == '_') ||
9639 (cur == '-')) {
9652 buf[len++] = cur;
9654 cur = CUR;
9655 if (cur == 0) {
9658 cur = CUR;
9970 IS_BLANK_CH(CUR)) {
9973 } else if (IS_BLANK_CH(CUR)) {
10019 ((ctxt->input->end - ctxt->input->cur) >= 4)) {
10036 if (CUR == 0) {
10194 if ((ctxt->input->end - ctxt->input->cur) >= 4) {
10206 if (CUR == 0) {
10291 base = in->cur - in->base;
10328 return(base - (in->cur - in->base));
10405 * @cur: pointer to the bock of characters
10483 xmlChar cur, next;
10543 (ctxt->input->cur - ctxt->input->base > 4096)) {
10563 (ctxt->input->cur - ctxt->input->base);
10574 int current = ctxt->input->cur - ctxt->input->base;
10578 ctxt->input->cur = ctxt->input->base + current;
10584 (ctxt->input->cur - ctxt->input->base);
10623 cur = ctxt->input->cur[0];
10624 next = ctxt->input->cur[1];
10625 if (cur == 0) {
10639 if ((cur == '<') && (next == '?')) {
10648 if ((ctxt->input->cur[2] == 'x') &&
10649 (ctxt->input->cur[3] == 'm') &&
10650 (ctxt->input->cur[4] == 'l') &&
10651 (IS_BLANK_CH(ctxt->input->cur[5]))) {
10716 cur = ctxt->input->cur[0];
10717 if (cur != '<') {
10727 if ((lastgt == NULL) || (ctxt->input->cur >= lastgt))
10819 cur = ctxt->input->cur[0];
10820 next = ctxt->input->cur[1];
10824 if ((cur == '<') && (next == '/')) {
10827 } else if ((cur == '<') && (next == '?')) {
10832 } else if ((cur == '<') && (next != '!')) {
10835 } else if ((cur == '<') && (next == '!') &&
10836 (ctxt->input->cur[2] == '-') &&
10837 (ctxt->input->cur[3] == '-')) {
10842 ctxt->input->cur += 4;
10844 ctxt->input->cur -= 4;
10849 } else if ((cur == '<') && (ctxt->input->cur[1] == '!') &&
10850 (ctxt->input->cur[2] == '[') &&
10851 (ctxt->input->cur[3] == 'C') &&
10852 (ctxt->input->cur[4] == 'D') &&
10853 (ctxt->input->cur[5] == 'A') &&
10854 (ctxt->input->cur[6] == 'T') &&
10855 (ctxt->input->cur[7] == 'A') &&
10856 (ctxt->input->cur[8] == '[')) {
10860 } else if ((cur == '<') && (next == '!') &&
10863 } else if (cur == '&') {
10886 (ctxt->input->cur > lastlt))
10916 if ((lastgt == NULL) || (ctxt->input->cur >= lastgt))
10951 tmp = xmlCheckCdataPush(ctxt->input->cur,
10955 ctxt->input->cur += tmp;
10961 ctxt->input->cur, tmp);
10964 ctxt->input->cur, tmp);
10973 tmp = xmlCheckCdataPush(ctxt->input->cur, base);
10976 ctxt->input->cur += tmp;
10987 if ((ctxt->input->cur - ctxt->input->base >= 9) &&
10988 (!strncmp((const char *)&ctxt->input->cur[-9],
10996 ctxt->input->cur, base);
10999 ctxt->input->cur, base);
11015 (ctxt->input->cur - ctxt->input->base);
11018 (ctxt->input->cur - ctxt->input->base);
11021 cur = ctxt->input->cur[0];
11022 next = ctxt->input->cur[1];
11023 if ((cur == '<') && (next == '?')) {
11033 } else if ((cur == '<') && (next == '!') &&
11034 (ctxt->input->cur[2] == '-') &&
11035 (ctxt->input->cur[3] == '-')) {
11046 } else if ((cur == '<') && (next == '!') &&
11047 (ctxt->input->cur[2] == 'D') &&
11048 (ctxt->input->cur[3] == 'O') &&
11049 (ctxt->input->cur[4] == 'C') &&
11050 (ctxt->input->cur[5] == 'T') &&
11051 (ctxt->input->cur[6] == 'Y') &&
11052 (ctxt->input->cur[7] == 'P') &&
11053 (ctxt->input->cur[8] == 'E')) {
11087 } else if ((cur == '<') && (next == '!') &&
11103 avail = ctxt->input->length - (ctxt->input->cur - ctxt->input->base);
11105 avail = ctxt->input->buf->buffer->use - (ctxt->input->cur - ctxt->input->base);
11108 cur = ctxt->input->cur[0];
11109 next = ctxt->input->cur[1];
11110 if ((cur == '<') && (next == '?')) {
11119 } else if ((cur == '<') && (next == '!') &&
11120 (ctxt->input->cur[2] == '-') && (ctxt->input->cur[3] == '-')) {
11130 } else if ((cur == '<') && (next == '!') &&
11147 avail = ctxt->input->length - (ctxt->input->cur - ctxt->input->base);
11149 avail = ctxt->input->buf->buffer->use - (ctxt->input->cur - ctxt->input->base);
11152 cur = ctxt->input->cur[0];
11153 next = ctxt->input->cur[1];
11154 if ((cur == '<') && (next == '?')) {
11164 } else if ((cur == '<') && (next == '!') &&
11165 (ctxt->input->cur[2] == '-') && (ctxt->input->cur[3] == '-')) {
11175 } else if ((cur == '<') && (next == '!') &&
11205 base = ctxt->input->cur - ctxt->input->base;
11401 ctxt->input->cur[0], ctxt->input->cur[1],
11402 ctxt->input->cur[2], ctxt->input->cur[3]);
11440 int cur = ctxt->input->cur - ctxt->input->base;
11450 ctxt->input->cur = ctxt->input->base + cur;
11490 (ctxt->input->cur - ctxt->input->base);
11493 (ctxt->input->cur - ctxt->input->base);
11614 inputStream->cur = inputStream->buf->buffer->content;
11629 int cur = ctxt->input->cur - ctxt->input->base;
11634 ctxt->input->cur = ctxt->input->base + cur;
11663 ctxt->input->cur = BAD_CAST"";
11664 ctxt->input->base = ctxt->input->cur;
11804 pinput->base = ctxt->input->cur;
11805 pinput->cur = ctxt->input->cur;
11822 ((ctxt->input->end - ctxt->input->cur) >= 4)) {
11937 if ((ctxt->input->end - ctxt->input->cur) >= 4) {
11938 enc = xmlDetectCharEncoding(ctxt->input->cur, 4);
11948 input->base = ctxt->input->cur;
11949 input->cur = ctxt->input->cur;
12126 if ((ctxt->input->end - ctxt->input->cur) >= 4) {
12202 xmlNodePtr cur;
12208 cur = newDoc->children->children;
12209 *lst = cur;
12210 while (cur != NULL) {
12211 cur->parent = NULL;
12212 cur = cur->next;
12344 if ((ctxt->input->end - ctxt->input->cur) >= 4) {
12383 xmlNodePtr cur;
12389 cur = newDoc->children->children;
12390 *list = cur;
12391 while (cur != NULL) {
12392 cur->parent = NULL;
12393 cur = cur->next;
12410 oldctxt->sizeentities += (ctxt->input->cur - ctxt->input->base);
12623 xmlNodePtr cur;
12629 cur = ctxt->myDoc->children->children;
12630 *lst = cur;
12631 while (cur != NULL) {
12635 (cur->type == XML_ELEMENT_NODE)) {
12637 oldctxt->myDoc, cur);
12640 cur->parent = NULL;
12641 cur = cur->next;
12699 xmlNodePtr fake, cur;
12780 cur = node;
12781 while ((cur != NULL) && (cur->type == XML_ELEMENT_NODE)) {
12782 xmlNsPtr ns = cur->nsDef;
12800 cur = cur->parent;
12844 cur = fake->next;
12848 if (cur != NULL) {
12849 cur->prev = NULL;
12852 *lst = cur;
12854 while (cur != NULL) {
12855 cur->parent = NULL;
12856 cur = cur->next;
13016 xmlNodePtr cur;
13022 cur = newDoc->children->children;
13023 *lst = cur;
13024 while (cur != NULL) {
13025 xmlSetTreeDoc(cur, doc);
13026 cur->parent = NULL;
13027 cur = cur->next;
13327 * @cur: a pointer to an array of xmlChar
13337 xmlRecoverDoc(xmlChar *cur) {
13338 return(xmlSAXParseDoc(NULL, cur, 1));
13405 input->cur = buffer;
13506 input->cur = input->buf->buffer->content;
13669 * @cur: a pointer to an array of xmlChar
13676 xmlCreateDocParserCtxt(const xmlChar *cur) {
13679 if (cur == NULL)
13681 len = xmlStrlen(cur);
13682 return(xmlCreateMemoryParserCtxt((const char *)cur, len));
13689 * @cur: a pointer to an array of xmlChar
13701 xmlSAXParseDoc(xmlSAXHandlerPtr sax, const xmlChar *cur, int recovery) {
13706 if (cur == NULL) return(NULL);
13709 ctxt = xmlCreateDocParserCtxt(cur);
13734 * @cur: a pointer to an array of xmlChar
13742 xmlParseDoc(const xmlChar *cur) {
13743 return(xmlSAXParseDoc(NULL, cur, 0));
14065 inputStream->cur = inputStream->buf->buffer->content;
14074 int cur = ctxt->input->cur - ctxt->input->base;
14079 ctxt->input->cur = ctxt->input->base + cur;
14306 * @cur: a pointer to a zero terminated string
14316 xmlReadDoc(const xmlChar * cur, const char *URL, const char *encoding, int options)
14320 if (cur == NULL)
14323 ctxt = xmlCreateDocParserCtxt(cur);
14461 * @cur: a pointer to a zero terminated string
14472 xmlCtxtReadDoc(xmlParserCtxtPtr ctxt, const xmlChar * cur,
14477 if (cur == NULL)
14484 stream = xmlNewStringInputStream(ctxt, cur);