• Home
  • Raw
  • Download

Lines Matching refs:token

59     const xmlChar *token;  member
92 tokenPtr token; member
252 tokenPtr token; in xmlCRNGNextToken() local
256 token = &(ctxt->tokens[(ctxt->firstToken + ctxt->nbTokens) % MAX_TOKEN]); in xmlCRNGNextToken()
257 token->toktype = CRNG_NONE; in xmlCRNGNextToken()
291 token->toklen = cur - ctxt->cur; in xmlCRNGNextToken()
292 token->token = xmlDictLookup(ctxt->dict, ctxt->cur, token->toklen); in xmlCRNGNextToken()
293 token->toktype = CRNG_LITERAL_SEGMENT; in xmlCRNGNextToken()
294 token->prefix = NULL; in xmlCRNGNextToken()
308 token->toklen = 2; in xmlCRNGNextToken()
310 token->toklen = 1; in xmlCRNGNextToken()
312 token->token = xmlDictLookup(ctxt->dict, ctxt->cur, token->toklen); in xmlCRNGNextToken()
313 token->toktype = CRNG_OP; in xmlCRNGNextToken()
314 token->prefix = NULL; in xmlCRNGNextToken()
315 ctxt->cur += token->toklen; in xmlCRNGNextToken()
328 token->toklen = cur - ctxt->cur; in xmlCRNGNextToken()
329 token->token = xmlDictLookup(ctxt->dict, ctxt->cur, token->toklen); in xmlCRNGNextToken()
330 token->prefix = NULL; in xmlCRNGNextToken()
332 if ((escape == 0) && (xmlCRNGIsKeyword(ctxt, token->token))) in xmlCRNGNextToken()
333 token->toktype = CRNG_KEYWORD; in xmlCRNGNextToken()
335 token->toktype = CRNG_IDENTIFIER; in xmlCRNGNextToken()
341 token->toktype = CRNG_NSNAME; in xmlCRNGNextToken()
346 token->prefix = token->token; in xmlCRNGNextToken()
347 token->toklen = cur - ctxt->cur; in xmlCRNGNextToken()
348 token->token = xmlDictLookup(ctxt->dict, ctxt->cur, in xmlCRNGNextToken()
349 token->toklen); in xmlCRNGNextToken()
351 if (xmlValidateNCName(token->token, 0) == 0) in xmlCRNGNextToken()
352 token->toktype = CRNG_QNAME; in xmlCRNGNextToken()
355 token->toktype = CRNG_IDENTIFIER; in xmlCRNGNextToken()
420 tokenPtr token; in xmlParseCRNGTokenize() local
422 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNGTokenize()
423 while (token != NULL) { in xmlParseCRNGTokenize()
424 switch (token->toktype) { in xmlParseCRNGTokenize()
435 printf(":%s\n", token->token); in xmlParseCRNGTokenize()
437 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNGTokenize()
670 tokenPtr token; in xmlParseCRNG_exceptNameClass() local
673 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_exceptNameClass()
674 if ((token->toktype == CRNG_OP) && in xmlParseCRNG_exceptNameClass()
675 (token->token[0] == '-') && (token->token[1] == 0)) { in xmlParseCRNG_exceptNameClass()
699 tokenPtr token; in xmlParseCRNG_innerNameClass() local
702 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_innerNameClass()
703 if (token->toktype == CRNG_OP) { in xmlParseCRNG_innerNameClass()
704 if ((token->token[0] == '(') && (token->token[1] == 0)) { in xmlParseCRNG_innerNameClass()
707 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_innerNameClass()
708 if ((token->toktype != CRNG_OP) || in xmlParseCRNG_innerNameClass()
709 (token->token[0] != ')') || (token->token[1] != 0)) { in xmlParseCRNG_innerNameClass()
713 } else if ((token->token[0] == '*') && (token->token[1] == 0)) { in xmlParseCRNG_innerNameClass()
724 } else if ((token->toktype == CRNG_IDENTIFIER) || in xmlParseCRNG_innerNameClass()
725 (token->toktype == CRNG_KEYWORD)) { in xmlParseCRNG_innerNameClass()
734 xmlNodeAddContent(cur, token->token); in xmlParseCRNG_innerNameClass()
739 } else if (token->toktype == CRNG_CNAME) { in xmlParseCRNG_innerNameClass()
741 } else if (token->toktype == CRNG_NSNAME) { in xmlParseCRNG_innerNameClass()
745 xmlParseCRNG_lookupPrefix(ctxt, token->token)); in xmlParseCRNG_innerNameClass()
769 tokenPtr token; in xmlParseCRNG_nameClass() local
775 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_nameClass()
776 while ((token->toktype == CRNG_OP) && in xmlParseCRNG_nameClass()
777 (token->token[0] == '|') && (token->token[1] == 0)) { in xmlParseCRNG_nameClass()
786 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_nameClass()
805 tokenPtr token; in xmlParseCRNG_patternBlock() local
807 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_patternBlock()
808 if ((token->toktype != CRNG_OP) || in xmlParseCRNG_patternBlock()
809 (token->token[0] != '{') || (token->token[1] != 0)) { in xmlParseCRNG_patternBlock()
814 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_patternBlock()
815 if ((token->toktype != CRNG_OP) || in xmlParseCRNG_patternBlock()
816 (token->token[0] != '}') || (token->token[1] != 0)) { in xmlParseCRNG_patternBlock()
834 tokenPtr token; in xmlParseCRNG_datatype() local
837 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_datatype()
838 if (token->toktype == CRNG_KEYWORD) { in xmlParseCRNG_datatype()
839 if (token->token == ctxt->key_string) { in xmlParseCRNG_datatype()
841 token->token); in xmlParseCRNG_datatype()
843 } else if (token->token == ctxt->key_token) { in xmlParseCRNG_datatype()
845 token->token); in xmlParseCRNG_datatype()
850 } else if (token->toktype == CRNG_LITERAL_SEGMENT) { in xmlParseCRNG_datatype()
854 xmlNodeAddContent(ctxt->insert, token->token); in xmlParseCRNG_datatype()
855 } else if (token->toktype == CRNG_QNAME) { in xmlParseCRNG_datatype()
857 xmlParseCRNG_lookupDatatypePrefix(ctxt, token->prefix), in xmlParseCRNG_datatype()
858 token->token); in xmlParseCRNG_datatype()
863 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_datatype()
864 if (token->toktype == CRNG_LITERAL_SEGMENT) { in xmlParseCRNG_datatype()
872 xmlNodeAddContent(ctxt->insert, token->token); in xmlParseCRNG_datatype()
873 } else if ((token->toktype == CRNG_OP) && in xmlParseCRNG_datatype()
874 (token->token[0] == '{') && (token->token[0] == 0)) { in xmlParseCRNG_datatype()
891 xmlNodeAddContent(ctxt->insert, token->token); in xmlParseCRNG_datatype()
908 tokenPtr token; in xmlParseCRNG_primary() local
910 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_primary()
911 if (token == NULL) in xmlParseCRNG_primary()
913 if (token->toktype == CRNG_KEYWORD) { in xmlParseCRNG_primary()
914 if (token->token == ctxt->key_element) { in xmlParseCRNG_primary()
915 ctxt->insert = xmlNewNodeEatName(NULL, (xmlChar *) token->token); in xmlParseCRNG_primary()
921 } else if (token->token == ctxt->key_attribute) { in xmlParseCRNG_primary()
922 ctxt->insert = xmlNewNodeEatName(NULL, (xmlChar *) token->token); in xmlParseCRNG_primary()
928 } else if (token->token == ctxt->key_mixed) { in xmlParseCRNG_primary()
929 ctxt->insert = xmlNewNodeEatName(NULL, (xmlChar *) token->token); in xmlParseCRNG_primary()
933 } else if (token->token == ctxt->key_list) { in xmlParseCRNG_primary()
934 ctxt->insert = xmlNewNodeEatName(NULL, (xmlChar *) token->token); in xmlParseCRNG_primary()
938 } else if (token->token == ctxt->key_empty) { in xmlParseCRNG_primary()
939 ctxt->insert = xmlNewNodeEatName(NULL, (xmlChar *) token->token); in xmlParseCRNG_primary()
942 } else if (token->token == ctxt->key_notAllowed) { in xmlParseCRNG_primary()
943 ctxt->insert = xmlNewNodeEatName(NULL, (xmlChar *) token->token); in xmlParseCRNG_primary()
946 } else if (token->token == ctxt->key_text) { in xmlParseCRNG_primary()
947 ctxt->insert = xmlNewNodeEatName(NULL, (xmlChar *) token->token); in xmlParseCRNG_primary()
950 } else if (token->token == ctxt->key_parent) { in xmlParseCRNG_primary()
951 ctxt->insert = xmlNewNodeEatName(NULL, (xmlChar *) token->token); in xmlParseCRNG_primary()
955 } else if (token->token == ctxt->key_grammar) { in xmlParseCRNG_primary()
956 ctxt->insert = xmlNewNodeEatName(NULL, (xmlChar *) token->token); in xmlParseCRNG_primary()
960 } else if (token->token == ctxt->key_external) { in xmlParseCRNG_primary()
968 } else if (token->toktype == CRNG_IDENTIFIER) { in xmlParseCRNG_primary()
971 xmlSetProp(ctxt->insert, BAD_CAST "name", token->token); in xmlParseCRNG_primary()
973 } else if (token->toktype == CRNG_QNAME) { in xmlParseCRNG_primary()
975 } else if (token->toktype == CRNG_LITERAL_SEGMENT) { in xmlParseCRNG_primary()
977 } else if ((token->toktype == CRNG_OP) && in xmlParseCRNG_primary()
978 (token->token[0] == '(') && (token->token[1] == 0)) { in xmlParseCRNG_primary()
981 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_primary()
982 if ((token->toktype != CRNG_OP) || in xmlParseCRNG_primary()
983 (token->token[0] != ')') || (token->token[1] != 0)) { in xmlParseCRNG_primary()
1002 tokenPtr token; in xmlParseCRNG_particle() local
1008 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_particle()
1009 if ((token != NULL) && (token->toktype == CRNG_OP)) { in xmlParseCRNG_particle()
1010 if ((token->token[0] == '*') && (token->token[1] == 0)) { in xmlParseCRNG_particle()
1013 } else if ((token->token[0] == '+') && (token->token[1] == 0)) { in xmlParseCRNG_particle()
1016 } else if ((token->token[0] == '?') && (token->token[1] == 0)) { in xmlParseCRNG_particle()
1045 tokenPtr token; in xmlParseCRNG_pattern() local
1051 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_pattern()
1052 while ((prev != NULL) && (token != NULL) && (token->toktype == CRNG_OP)) { in xmlParseCRNG_pattern()
1053 if (token->token == ctxt->key_or) { in xmlParseCRNG_pattern()
1056 } else if (token->token == ctxt->key_and) { in xmlParseCRNG_pattern()
1059 } else if (token->token == ctxt->key_comma) { in xmlParseCRNG_pattern()
1070 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_pattern()
1093 tokenPtr token, tok2; in xmlParseCRNG_component() local
1096 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_component()
1097 if (token == NULL) in xmlParseCRNG_component()
1099 if (token->toktype == CRNG_KEYWORD) { in xmlParseCRNG_component()
1100 if (token->token == ctxt->key_start) { in xmlParseCRNG_component()
1109 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_component()
1111 if ((token->toktype == CRNG_OP) && in xmlParseCRNG_component()
1112 (token->token == ctxt->key_equal)) { in xmlParseCRNG_component()
1113 } else if ((token->toktype == CRNG_OP) && in xmlParseCRNG_component()
1114 (token->token == ctxt->key_orequal)) { in xmlParseCRNG_component()
1117 } else if ((token->toktype == CRNG_OP) && in xmlParseCRNG_component()
1118 (token->token == ctxt->key_andequal)) { in xmlParseCRNG_component()
1130 } else if (token->token == ctxt->key_include) { in xmlParseCRNG_component()
1132 } else if (token->token == ctxt->key_div) { in xmlParseCRNG_component()
1137 } else if (token->toktype == CRNG_IDENTIFIER) { in xmlParseCRNG_component()
1141 identifier = token->token; in xmlParseCRNG_component()
1144 (tok2->token == ctxt->key_equal)) { in xmlParseCRNG_component()
1146 (tok2->token == ctxt->key_orequal)) { in xmlParseCRNG_component()
1150 (tok2->token == ctxt->key_andequal)) { in xmlParseCRNG_component()
1186 tokenPtr token; in xmlParseCRNG_grammar() local
1189 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_grammar()
1190 while (token != NULL) { in xmlParseCRNG_grammar()
1194 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_grammar()
1210 tokenPtr token, tok2; in xmlParseCRNG_topLevelBody() local
1212 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_topLevelBody()
1213 if (token->toktype == CRNG_KEYWORD) { in xmlParseCRNG_topLevelBody()
1214 if ((token->token == ctxt->key_start) || in xmlParseCRNG_topLevelBody()
1215 (token->token == ctxt->key_include) || in xmlParseCRNG_topLevelBody()
1216 (token->token == ctxt->key_div)) { in xmlParseCRNG_topLevelBody()
1231 ((tok2->token == ctxt->key_equal) || in xmlParseCRNG_topLevelBody()
1232 (tok2->token == ctxt->key_orequal) || in xmlParseCRNG_topLevelBody()
1233 (tok2->token == ctxt->key_andequal))) { in xmlParseCRNG_topLevelBody()
1260 tokenPtr token; in xmlParseCRNG_namespacePrefix() local
1263 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_namespacePrefix()
1264 if (token->toktype == CRNG_IDENTIFIER) { in xmlParseCRNG_namespacePrefix()
1265 prefix = token->token; in xmlParseCRNG_namespacePrefix()
1266 } else if (token->toktype == CRNG_OP) { in xmlParseCRNG_namespacePrefix()
1267 if ((token->token[0] == '=') && (token->token[1] == 0)) in xmlParseCRNG_namespacePrefix()
1269 prefix = token->token; in xmlParseCRNG_namespacePrefix()
1295 tokenPtr token; in xmlParseCRNG_decl() local
1297 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_decl()
1298 if (token->toktype != CRNG_KEYWORD) return(-1); in xmlParseCRNG_decl()
1299 if (token->token == ctxt->key_default) { in xmlParseCRNG_decl()
1301 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_decl()
1302 if ((token->toktype != CRNG_KEYWORD) || in xmlParseCRNG_decl()
1303 (token->token != ctxt->key_namespace)) { in xmlParseCRNG_decl()
1308 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_decl()
1309 if ((token->toktype != CRNG_OP) || in xmlParseCRNG_decl()
1310 (token->token[0] != '=') || (token->token[1] != 0)) { in xmlParseCRNG_decl()
1314 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_decl()
1315 if ((token->toktype == CRNG_KEYWORD) && in xmlParseCRNG_decl()
1316 (token->token == ctxt->key_inherit)) { in xmlParseCRNG_decl()
1318 } else if (token->toktype == CRNG_LITERAL_SEGMENT) { in xmlParseCRNG_decl()
1319 namespace = token->token; in xmlParseCRNG_decl()
1329 } else if (token->token == ctxt->key_namespace) { in xmlParseCRNG_decl()
1332 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_decl()
1333 if ((token->toktype != CRNG_OP) || in xmlParseCRNG_decl()
1334 (token->token[0] != '=') || (token->token[1] != 0)) { in xmlParseCRNG_decl()
1338 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_decl()
1339 if ((token->toktype == CRNG_KEYWORD) && in xmlParseCRNG_decl()
1340 (token->token == ctxt->key_inherit)) { in xmlParseCRNG_decl()
1342 } else if (token->toktype == CRNG_LITERAL_SEGMENT) { in xmlParseCRNG_decl()
1343 namespace = token->token; in xmlParseCRNG_decl()
1350 } else if (token->token == ctxt->key_datatypes) { in xmlParseCRNG_decl()
1353 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_decl()
1354 if ((token->toktype != CRNG_KEYWORD) && in xmlParseCRNG_decl()
1355 (token->toktype != CRNG_IDENTIFIER)) { in xmlParseCRNG_decl()
1358 prefix = token->token; in xmlParseCRNG_decl()
1360 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_decl()
1361 if ((token->toktype != CRNG_OP) || in xmlParseCRNG_decl()
1362 (token->token[0] != '=') || (token->token[1] != 0)) { in xmlParseCRNG_decl()
1366 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_decl()
1367 if (token->toktype == CRNG_LITERAL_SEGMENT) { in xmlParseCRNG_decl()
1368 namespace = token->token; in xmlParseCRNG_decl()
1391 tokenPtr token; in xmlParseCRNG_preamble() local
1393 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_preamble()
1394 while (token != NULL) { in xmlParseCRNG_preamble()
1395 if (token == NULL) return(-1); in xmlParseCRNG_preamble()
1396 if ((token->toktype == CRNG_KEYWORD) && in xmlParseCRNG_preamble()
1397 ((token->token == ctxt->key_default) || in xmlParseCRNG_preamble()
1398 (token->token == ctxt->key_namespace) || in xmlParseCRNG_preamble()
1399 (token->token == ctxt->key_datatypes))) { in xmlParseCRNG_preamble()
1403 token = xmlParseCRNGGetToken(ctxt, 1); in xmlParseCRNG_preamble()