Lines Matching refs:CUR
323 #define CUR ((int) (*ctxt->input->cur)) macro
2430 if (CUR == 0) return(1); in areBlanks()
2431 if (CUR != '<') return(0); in areBlanks()
2573 if (!IS_ASCII_LETTER(CUR) && (CUR != '_') && in htmlParseHTMLName()
2574 (CUR != ':') && (CUR != '.')) return(NULL); in htmlParseHTMLName()
2577 ((IS_ASCII_LETTER(CUR)) || (IS_ASCII_DIGIT(CUR)) || in htmlParseHTMLName()
2578 (CUR == ':') || (CUR == '-') || (CUR == '_') || in htmlParseHTMLName()
2579 (CUR == '.'))) { in htmlParseHTMLName()
2580 if ((CUR >= 'A') && (CUR <= 'Z')) loc[i] = CUR + 0x20; in htmlParseHTMLName()
2581 else loc[i] = CUR; in htmlParseHTMLName()
2753 while ((CUR != 0) && (CUR != stop)) { in htmlParseHTMLAttribute()
2754 if ((stop == 0) && (CUR == '>')) break; in htmlParseHTMLAttribute()
2755 if ((stop == 0) && (IS_BLANK_CH(CUR))) break; in htmlParseHTMLAttribute()
2756 if (CUR == '&') { in htmlParseHTMLAttribute()
2878 if (CUR == '&') { in htmlParseEntityRef()
2886 if (CUR == ';') { in htmlParseEntityRef()
2924 if (CUR == '"') { in htmlParseAttValue()
2927 if (CUR != '"') { in htmlParseAttValue()
2932 } else if (CUR == '\'') { in htmlParseAttValue()
2935 if (CUR != '\'') { in htmlParseAttValue()
2971 if ((CUR != '"') && (CUR != '\'')) { in htmlParseSystemLiteral()
2976 quote = CUR; in htmlParseSystemLiteral()
2983 while ((CUR != 0) && (CUR != quote)) { in htmlParseSystemLiteral()
2985 if (!IS_CHAR_CH(CUR)) { in htmlParseSystemLiteral()
2987 "Invalid char in SystemLiteral 0x%X\n", CUR); in htmlParseSystemLiteral()
2993 if (CUR != quote) { in htmlParseSystemLiteral()
3023 if ((CUR != '"') && (CUR != '\'')) { in htmlParsePubidLiteral()
3028 quote = CUR; in htmlParsePubidLiteral()
3038 while ((CUR != 0) && (CUR != quote)) { in htmlParsePubidLiteral()
3039 if (!IS_PUBIDCHAR_CH(CUR)) { in htmlParsePubidLiteral()
3041 "Invalid char in PubidLiteral 0x%X\n", CUR); in htmlParsePubidLiteral()
3048 if (CUR != '"') { in htmlParsePubidLiteral()
3298 if (!IS_BLANK_CH(CUR)) { in htmlParseExternalID()
3312 if (!IS_BLANK_CH(CUR)) { in htmlParseExternalID()
3324 if ((CUR == '"') || (CUR == '\'')) { in htmlParseExternalID()
3383 cur = CUR; in htmlParsePI()
3577 if ((CUR == '&') && (NXT(1) == '#') && in htmlParseCharRef()
3580 while (CUR != ';') { in htmlParseCharRef()
3581 if ((CUR >= '0') && (CUR <= '9')) { in htmlParseCharRef()
3583 val = val * 16 + (CUR - '0'); in htmlParseCharRef()
3584 } else if ((CUR >= 'a') && (CUR <= 'f')) { in htmlParseCharRef()
3586 val = val * 16 + (CUR - 'a') + 10; in htmlParseCharRef()
3587 } else if ((CUR >= 'A') && (CUR <= 'F')) { in htmlParseCharRef()
3589 val = val * 16 + (CUR - 'A') + 10; in htmlParseCharRef()
3598 if (CUR == ';') in htmlParseCharRef()
3600 } else if ((CUR == '&') && (NXT(1) == '#')) { in htmlParseCharRef()
3602 while (CUR != ';') { in htmlParseCharRef()
3603 if ((CUR >= '0') && (CUR <= '9')) { in htmlParseCharRef()
3605 val = val * 10 + (CUR - '0'); in htmlParseCharRef()
3614 if (CUR == ';') in htmlParseCharRef()
3684 if (CUR != '>') { in htmlParseDocTypeDecl()
3688 while ((CUR != 0) && (CUR != '>')) in htmlParseDocTypeDecl()
3691 if (CUR == '>') in htmlParseDocTypeDecl()
3746 if (CUR == '=') { in htmlParseAttribute()
3949 if (CUR != '<') return -1; in htmlParseStartTag()
3962 if ((ctxt->recovery) && ((IS_BLANK_CH(CUR)) || (CUR == '<') || in htmlParseStartTag()
3963 (CUR == '=') || (CUR == '>') || (((CUR >= '0') && (CUR <= '9'))))) { in htmlParseStartTag()
3970 while ((CUR != 0) && (CUR != '>') && in htmlParseStartTag()
4026 while ((CUR != 0) && in htmlParseStartTag()
4027 (CUR != '>') && in htmlParseStartTag()
4028 ((CUR != '/') || (NXT(1) != '>'))) { in htmlParseStartTag()
4087 while ((CUR != 0) && in htmlParseStartTag()
4088 !(IS_BLANK_CH(CUR)) && (CUR != '>') && in htmlParseStartTag()
4089 ((CUR != '/') || (NXT(1) != '>'))) in htmlParseStartTag()
4148 if ((CUR != '<') || (NXT(1) != '/')) { in htmlParseEndTag()
4162 if (CUR != '>') { in htmlParseEndTag()
4166 while ((CUR != 0) && (CUR != '>')) in htmlParseEndTag()
4169 if (CUR == '>') in htmlParseEndTag()
4247 if (CUR != '&') return; in htmlParseReference()
4336 if ((CUR == '<') && (NXT(1) == '/')) { in htmlParseContent()
4346 else if ((CUR == '<') && in htmlParseContent()
4355 while ((CUR != 0) && (CUR != '>')) in htmlParseContent()
4382 if ((CUR != 0) && ((xmlStrEqual(currentNode, BAD_CAST"script")) || in htmlParseContent()
4392 if ((CUR == '<') && (NXT(1) == '!') && in htmlParseContent()
4406 if ((CUR == '<') && (NXT(1) == '!') && in htmlParseContent()
4414 else if ((CUR == '<') && (NXT(1) == '?')) { in htmlParseContent()
4421 else if (CUR == '<') { in htmlParseContent()
4429 else if (CUR == '&') { in htmlParseContent()
4436 else if (CUR == 0) { in htmlParseContent()
4494 if (CUR == '>') in htmlParseElement()
4511 if ((CUR == '/') && (NXT(1) == '>')) { in htmlParseElement()
4519 if (CUR == '>') { in htmlParseElement()
4561 while (CUR != 0) { in htmlParseElement()
4578 if (CUR == 0) { in htmlParseElement()
4599 if (CUR == 0) { in htmlParserFinishElementParsing()
4641 if (CUR == '>') in htmlParseElementInternal()
4658 if ((CUR == '/') && (NXT(1) == '>')) { in htmlParseElementInternal()
4666 if (CUR == '>') { in htmlParseElementInternal()
4725 if ((CUR == '<') && (NXT(1) == '/')) { in htmlParseContentInternal()
4737 else if ((CUR == '<') && in htmlParseContentInternal()
4746 while ((CUR == 0) && (CUR != '>')) in htmlParseContentInternal()
4781 if ((CUR != 0) && ((xmlStrEqual(currentNode, BAD_CAST"script")) || in htmlParseContentInternal()
4791 if ((CUR == '<') && (NXT(1) == '!') && in htmlParseContentInternal()
4805 if ((CUR == '<') && (NXT(1) == '!') && in htmlParseContentInternal()
4813 else if ((CUR == '<') && (NXT(1) == '?')) { in htmlParseContentInternal()
4820 else if (CUR == '<') { in htmlParseContentInternal()
4832 else if (CUR == '&') { in htmlParseContentInternal()
4839 else if (CUR == 0) { in htmlParseContentInternal()
4926 if (CUR == 0) { in htmlParseDocument()
4938 while (((CUR == '<') && (NXT(1) == '!') && in htmlParseDocument()
4940 ((CUR == '<') && (NXT(1) == '?'))) { in htmlParseDocument()
4951 if ((CUR == '<') && (NXT(1) == '!') && in htmlParseDocument()
4963 while (((CUR == '<') && (NXT(1) == '!') && in htmlParseDocument()
4965 ((CUR == '<') && (NXT(1) == '?'))) { in htmlParseDocument()
4979 if (CUR == 0) in htmlParseDocument()
5799 if (CUR == '>') in htmlParseTryOrFinish()
5816 if ((CUR == '/') && (NXT(1) == '>')) { in htmlParseTryOrFinish()
5829 if (CUR == '>') { in htmlParseTryOrFinish()