Lines Matching refs:atom
212 xmlRegAtomPtr atom; member
249 xmlRegAtomPtr atom; member
354 static void xmlRegFreeAtom(xmlRegAtomPtr atom);
356 static int xmlRegCheckCharacter(xmlRegAtomPtr atom, int codepoint);
570 if ((trans->to == -1) || (trans->atom == NULL)) in xmlRegEpxFromParse()
572 atomno = stringRemap[trans->atom->no]; in xmlRegEpxFromParse()
573 if ((trans->atom->data != NULL) && (transdata == NULL)) { in xmlRegEpxFromParse()
596 i, j, trans->atom->no, trans->to, atomno, targetno); in xmlRegEpxFromParse()
612 i, j, trans->atom->no, trans->to, atomno, targetno); in xmlRegEpxFromParse()
618 trans->atom->data; in xmlRegEpxFromParse()
806 xmlRegFreeAtom(xmlRegAtomPtr atom) { in xmlRegFreeAtom() argument
809 if (atom == NULL) in xmlRegFreeAtom()
812 for (i = 0;i < atom->nbRanges;i++) in xmlRegFreeAtom()
813 xmlRegFreeRange(atom->ranges[i]); in xmlRegFreeAtom()
814 if (atom->ranges != NULL) in xmlRegFreeAtom()
815 xmlFree(atom->ranges); in xmlRegFreeAtom()
816 if ((atom->type == XML_REGEXP_STRING) && (atom->valuep != NULL)) in xmlRegFreeAtom()
817 xmlFree(atom->valuep); in xmlRegFreeAtom()
818 if ((atom->type == XML_REGEXP_STRING) && (atom->valuep2 != NULL)) in xmlRegFreeAtom()
819 xmlFree(atom->valuep2); in xmlRegFreeAtom()
820 if ((atom->type == XML_REGEXP_BLOCK_NAME) && (atom->valuep != NULL)) in xmlRegFreeAtom()
821 xmlFree(atom->valuep); in xmlRegFreeAtom()
822 xmlFree(atom); in xmlRegFreeAtom()
835 xmlRegCopyAtom(xmlRegParserCtxtPtr ctxt, xmlRegAtomPtr atom) { in xmlRegCopyAtom() argument
844 ret->type = atom->type; in xmlRegCopyAtom()
845 ret->quant = atom->quant; in xmlRegCopyAtom()
846 ret->min = atom->min; in xmlRegCopyAtom()
847 ret->max = atom->max; in xmlRegCopyAtom()
848 if (atom->nbRanges > 0) { in xmlRegCopyAtom()
852 atom->nbRanges); in xmlRegCopyAtom()
857 for (i = 0;i < atom->nbRanges;i++) { in xmlRegCopyAtom()
858 ret->ranges[i] = xmlRegCopyRange(ctxt, atom->ranges[i]); in xmlRegCopyAtom()
1082 xmlRegPrintAtom(FILE *output, xmlRegAtomPtr atom) { in xmlRegPrintAtom() argument
1084 if (atom == NULL) { in xmlRegPrintAtom()
1088 if (atom->neg) in xmlRegPrintAtom()
1090 xmlRegPrintAtomType(output, atom->type); in xmlRegPrintAtom()
1091 xmlRegPrintQuantType(output, atom->quant); in xmlRegPrintAtom()
1092 if (atom->quant == XML_REGEXP_QUANT_RANGE) in xmlRegPrintAtom()
1093 fprintf(output, "%d-%d ", atom->min, atom->max); in xmlRegPrintAtom()
1094 if (atom->type == XML_REGEXP_STRING) in xmlRegPrintAtom()
1095 fprintf(output, "'%s' ", (char *) atom->valuep); in xmlRegPrintAtom()
1096 if (atom->type == XML_REGEXP_CHARVAL) in xmlRegPrintAtom()
1097 fprintf(output, "char %c\n", atom->codepoint); in xmlRegPrintAtom()
1098 else if (atom->type == XML_REGEXP_RANGES) { in xmlRegPrintAtom()
1100 fprintf(output, "%d entries\n", atom->nbRanges); in xmlRegPrintAtom()
1101 for (i = 0; i < atom->nbRanges;i++) in xmlRegPrintAtom()
1102 xmlRegPrintRange(output, atom->ranges[i]); in xmlRegPrintAtom()
1103 } else if (atom->type == XML_REGEXP_SUBREG) { in xmlRegPrintAtom()
1104 fprintf(output, "start %d end %d\n", atom->start->no, atom->stop->no); in xmlRegPrintAtom()
1135 if (trans->atom == NULL) { in xmlRegPrintTrans()
1139 if (trans->atom->type == XML_REGEXP_CHARVAL) in xmlRegPrintTrans()
1140 fprintf(output, "char %c ", trans->atom->codepoint); in xmlRegPrintTrans()
1141 fprintf(output, "atom %d, to %d\n", trans->atom->no, trans->to); in xmlRegPrintTrans()
1185 if (ctxt->atom != NULL) { in xmlRegPrintCtxt()
1187 xmlRegPrintAtom(output, ctxt->atom); in xmlRegPrintCtxt()
1213 xmlRegAtomAddRange(xmlRegParserCtxtPtr ctxt, xmlRegAtomPtr atom, in xmlRegAtomAddRange() argument
1218 if (atom == NULL) { in xmlRegAtomAddRange()
1222 if (atom->type != XML_REGEXP_RANGES) { in xmlRegAtomAddRange()
1226 if (atom->maxRanges == 0) { in xmlRegAtomAddRange()
1227 atom->maxRanges = 4; in xmlRegAtomAddRange()
1228 atom->ranges = (xmlRegRangePtr *) xmlMalloc(atom->maxRanges * in xmlRegAtomAddRange()
1230 if (atom->ranges == NULL) { in xmlRegAtomAddRange()
1232 atom->maxRanges = 0; in xmlRegAtomAddRange()
1235 } else if (atom->nbRanges >= atom->maxRanges) { in xmlRegAtomAddRange()
1237 atom->maxRanges *= 2; in xmlRegAtomAddRange()
1238 tmp = (xmlRegRangePtr *) xmlRealloc(atom->ranges, atom->maxRanges * in xmlRegAtomAddRange()
1242 atom->maxRanges /= 2; in xmlRegAtomAddRange()
1245 atom->ranges = tmp; in xmlRegAtomAddRange()
1251 atom->ranges[atom->nbRanges++] = range; in xmlRegAtomAddRange()
1284 xmlRegAtomPush(xmlRegParserCtxtPtr ctxt, xmlRegAtomPtr atom) { in xmlRegAtomPush() argument
1285 if (atom == NULL) { in xmlRegAtomPush()
1310 atom->no = ctxt->nbAtoms; in xmlRegAtomPush()
1311 ctxt->atoms[ctxt->nbAtoms++] = atom; in xmlRegAtomPush()
1345 xmlRegAtomPtr atom, xmlRegStatePtr target, in xmlRegStateAddTrans() argument
1366 if ((trans->atom == atom) && in xmlRegStateAddTrans()
1407 else if (atom == NULL) in xmlRegStateAddTrans()
1409 else if (atom != NULL) in xmlRegStateAddTrans()
1410 xmlRegPrintAtom(stdout, atom); in xmlRegStateAddTrans()
1413 state->trans[state->nbTrans].atom = atom; in xmlRegStateAddTrans()
1541 xmlRegStatePtr to, xmlRegAtomPtr atom) { in xmlFAGenerateTransitions() argument
1544 if (atom == NULL) { in xmlFAGenerateTransitions()
1548 if (atom->type == XML_REGEXP_SUBREG) { in xmlFAGenerateTransitions()
1553 if (xmlRegAtomPush(ctxt, atom) < 0) { in xmlFAGenerateTransitions()
1556 if ((to != NULL) && (atom->stop != to) && in xmlFAGenerateTransitions()
1557 (atom->quant != XML_REGEXP_QUANT_RANGE)) { in xmlFAGenerateTransitions()
1561 xmlFAGenerateEpsilonTransition(ctxt, atom->stop, to); in xmlFAGenerateTransitions()
1563 } else if ((to == NULL) && (atom->quant != XML_REGEXP_QUANT_RANGE) && in xmlFAGenerateTransitions()
1564 (atom->quant != XML_REGEXP_QUANT_ONCE)) { in xmlFAGenerateTransitions()
1568 xmlFAGenerateEpsilonTransition(ctxt, atom->stop, to); in xmlFAGenerateTransitions()
1571 switch (atom->quant) { in xmlFAGenerateTransitions()
1573 atom->quant = XML_REGEXP_QUANT_ONCE; in xmlFAGenerateTransitions()
1580 xmlFAGenerateEpsilonTransition(ctxt, atom->start, 0); in xmlFAGenerateTransitions()
1581 xmlFAGenerateEpsilonTransition(ctxt, atom->stop, in xmlFAGenerateTransitions()
1584 xmlFAGenerateEpsilonTransition(ctxt, atom->start, to); in xmlFAGenerateTransitions()
1588 atom->quant = XML_REGEXP_QUANT_ONCE; in xmlFAGenerateTransitions()
1589 xmlFAGenerateEpsilonTransition(ctxt, atom->start, atom->stop); in xmlFAGenerateTransitions()
1590 xmlFAGenerateEpsilonTransition(ctxt, atom->stop, atom->start); in xmlFAGenerateTransitions()
1593 atom->quant = XML_REGEXP_QUANT_ONCE; in xmlFAGenerateTransitions()
1594 xmlFAGenerateEpsilonTransition(ctxt, atom->stop, atom->start); in xmlFAGenerateTransitions()
1616 if ((atom->min == 0) && (atom->start0 == NULL)) { in xmlFAGenerateTransitions()
1627 copy = xmlRegCopyAtom(ctxt, atom); in xmlFAGenerateTransitions()
1634 if (xmlFAGenerateTransitions(ctxt, atom->start, NULL, copy) in xmlFAGenerateTransitions()
1639 ctxt->counters[counter].min = atom->min - 1; in xmlFAGenerateTransitions()
1640 ctxt->counters[counter].max = atom->max - 1; in xmlFAGenerateTransitions()
1643 atom->stop, counter); in xmlFAGenerateTransitions()
1648 xmlFAGenerateEpsilonTransition(ctxt, atom->start, in xmlFAGenerateTransitions()
1657 ctxt->counters[counter].min = atom->min - 1; in xmlFAGenerateTransitions()
1658 ctxt->counters[counter].max = atom->max - 1; in xmlFAGenerateTransitions()
1660 xmlFAGenerateCountedEpsilonTransition(ctxt, atom->stop, in xmlFAGenerateTransitions()
1661 atom->start, counter); in xmlFAGenerateTransitions()
1663 xmlFAGenerateCountedTransition(ctxt, atom->stop, in xmlFAGenerateTransitions()
1666 if (atom->min == 0) in xmlFAGenerateTransitions()
1667 xmlFAGenerateEpsilonTransition(ctxt, atom->start0, in xmlFAGenerateTransitions()
1671 atom->min = 0; in xmlFAGenerateTransitions()
1672 atom->max = 0; in xmlFAGenerateTransitions()
1673 atom->quant = XML_REGEXP_QUANT_ONCE; in xmlFAGenerateTransitions()
1681 if ((atom->min == 0) && (atom->max == 0) && in xmlFAGenerateTransitions()
1682 (atom->quant == XML_REGEXP_QUANT_RANGE)) { in xmlFAGenerateTransitions()
1696 xmlRegFreeAtom(atom); in xmlFAGenerateTransitions()
1708 if ((atom->quant == XML_REGEXP_QUANT_MULT) || in xmlFAGenerateTransitions()
1709 (atom->quant == XML_REGEXP_QUANT_PLUS)) { in xmlFAGenerateTransitions()
1726 if (xmlRegAtomPush(ctxt, atom) < 0) { in xmlFAGenerateTransitions()
1729 xmlRegStateAddTrans(ctxt, from, atom, to, -1, -1); in xmlFAGenerateTransitions()
1731 switch (atom->quant) { in xmlFAGenerateTransitions()
1733 atom->quant = XML_REGEXP_QUANT_ONCE; in xmlFAGenerateTransitions()
1737 atom->quant = XML_REGEXP_QUANT_ONCE; in xmlFAGenerateTransitions()
1739 xmlRegStateAddTrans(ctxt, to, atom, to, -1, -1); in xmlFAGenerateTransitions()
1742 atom->quant = XML_REGEXP_QUANT_ONCE; in xmlFAGenerateTransitions()
1743 xmlRegStateAddTrans(ctxt, to, atom, to, -1, -1); in xmlFAGenerateTransitions()
1747 if (atom->min == 0) { in xmlFAGenerateTransitions()
1796 if (to->trans[transnr].atom == NULL) { in xmlFAReduceEpsilonTransitions()
1828 xmlRegStateAddTrans(ctxt, from, to->trans[transnr].atom, in xmlFAReduceEpsilonTransitions()
1832 xmlRegStateAddTrans(ctxt, from, to->trans[transnr].atom, in xmlFAReduceEpsilonTransitions()
1869 if ((state->trans[0].atom == NULL) && in xmlFAEliminateSimpleEpsilonTransitions()
1895 xmlRegStateAddTrans(ctxt, tmp, tmp->trans[j].atom, in xmlFAEliminateSimpleEpsilonTransitions()
1962 if ((state->trans[transnr].atom == NULL) && in xmlFAEliminateEpsilonTransitions()
2002 if ((trans->atom == NULL) && in xmlFAEliminateEpsilonTransitions()
2030 ((state->trans[transnr].atom != NULL) || in xmlFAEliminateEpsilonTransitions()
2580 int to, xmlRegAtomPtr atom) { in xmlFARecurseDeterminism() argument
2603 if (t1->atom == NULL) { in xmlFARecurseDeterminism()
2607 to, atom); in xmlFARecurseDeterminism()
2616 if (xmlFACompareAtoms(t1->atom, atom, deep)) { in xmlFARecurseDeterminism()
2667 if (t1->atom == NULL) { in xmlFAComputesDeterminism()
2677 if (t2->atom != NULL) { in xmlFAComputesDeterminism()
2683 if (xmlFAEqualAtoms(t1->atom, t2->atom, deep) && in xmlFAComputesDeterminism()
2710 if (t1->atom == NULL) { in xmlFAComputesDeterminism()
2719 if (t2->atom != NULL) { in xmlFAComputesDeterminism()
2724 if (xmlFACompareAtoms(t1->atom, t2->atom, 1)) { in xmlFAComputesDeterminism()
2737 t2->to, t2->atom); in xmlFAComputesDeterminism()
2952 xmlRegCheckCharacter(xmlRegAtomPtr atom, int codepoint) { in xmlRegCheckCharacter() argument
2956 if ((atom == NULL) || (!IS_CHAR(codepoint))) in xmlRegCheckCharacter()
2959 switch (atom->type) { in xmlRegCheckCharacter()
2964 return(codepoint == atom->codepoint); in xmlRegCheckCharacter()
2968 for (i = 0;i < atom->nbRanges;i++) { in xmlRegCheckCharacter()
2969 range = atom->ranges[i]; in xmlRegCheckCharacter()
3045 ret = xmlRegCheckCharacterRange(atom->type, codepoint, 0, 0, 0, in xmlRegCheckCharacter()
3046 (const xmlChar *)atom->valuep); in xmlRegCheckCharacter()
3047 if (atom->neg) in xmlRegCheckCharacter()
3207 xmlRegAtomPtr atom; in xmlFARegExec() local
3225 atom = trans->atom; in xmlFARegExec()
3226 if (!((atom->min == 0) && (atom->max > 0))) in xmlFARegExec()
3238 atom = trans->atom; in xmlFARegExec()
3262 } else if (atom == NULL) { in xmlFARegExec()
3268 ret = xmlRegCheckCharacter(atom, codepoint); in xmlFARegExec()
3269 if ((ret == 1) && (atom->min >= 0) && (atom->max > 0)) { in xmlFARegExec()
3305 if (exec->transcount == atom->max) { in xmlFARegExec()
3316 if (exec->transcount >= atom->min) { in xmlFARegExec()
3331 ret = xmlRegCheckCharacter(atom, codepoint); in xmlFARegExec()
3334 if (exec->transcount < atom->min) in xmlFARegExec()
3356 } else if ((ret == 0) && (atom->min == 0) && (atom->max > 0)) { in xmlFARegExec()
3366 } else if ((atom->min == 0) && (atom->max > 0)) { in xmlFARegExec()
3379 trans->atom->no, codepoint, exec->index); in xmlFARegExec()
3421 if (trans->atom != NULL) { in xmlFARegExec()
3764 xmlRegAtomPtr atom; in xmlRegExecPushStringInternal() local
3819 atom = trans->atom; in xmlRegExecPushStringInternal()
3845 (t->atom != NULL) && in xmlRegExecPushStringInternal()
3846 (xmlStrEqual(value, t->atom->valuep))) { in xmlRegExecPushStringInternal()
3852 (t->atom != NULL) && in xmlRegExecPushStringInternal()
3853 (xmlStrEqual(value, t->atom->valuep))) { in xmlRegExecPushStringInternal()
3899 } else if (atom == NULL) { in xmlRegExecPushStringInternal()
3904 ret = xmlRegStrEqualWildcard(atom->valuep, value); in xmlRegExecPushStringInternal()
3905 if (atom->neg) { in xmlRegExecPushStringInternal()
3920 if ((ret == 1) && (atom->min > 0) && (atom->max > 0)) { in xmlRegExecPushStringInternal()
3937 if (exec->transcount == atom->max) { in xmlRegExecPushStringInternal()
3954 if (exec->transcount >= atom->min) { in xmlRegExecPushStringInternal()
3970 ret = xmlStrEqual(value, atom->valuep); in xmlRegExecPushStringInternal()
3973 if (exec->transcount < atom->min) in xmlRegExecPushStringInternal()
3988 if ((exec->callback != NULL) && (atom != NULL) && in xmlRegExecPushStringInternal()
3990 exec->callback(exec->data, atom->valuep, in xmlRegExecPushStringInternal()
3991 atom->data, data); in xmlRegExecPushStringInternal()
4032 if (trans->atom != NULL) { in xmlRegExecPushStringInternal()
4249 xmlRegAtomPtr atom; in xmlRegExecGetValues() local
4272 atom = trans->atom; in xmlRegExecGetValues()
4273 if ((atom == NULL) || (atom->valuep == NULL)) in xmlRegExecGetValues()
4292 if (atom->neg) in xmlRegExecGetValues()
4293 values[nb++] = (xmlChar *) atom->valuep2; in xmlRegExecGetValues()
4295 values[nb++] = (xmlChar *) atom->valuep; in xmlRegExecGetValues()
4302 if (atom->neg) in xmlRegExecGetValues()
4303 values[nb++] = (xmlChar *) atom->valuep2; in xmlRegExecGetValues()
4305 values[nb++] = (xmlChar *) atom->valuep; in xmlRegExecGetValues()
4316 atom = trans->atom; in xmlRegExecGetValues()
4317 if ((atom == NULL) || (atom->valuep == NULL)) in xmlRegExecGetValues()
4329 if (atom->neg) in xmlRegExecGetValues()
4330 values[nb++] = (xmlChar *) atom->valuep2; in xmlRegExecGetValues()
4332 values[nb++] = (xmlChar *) atom->valuep; in xmlRegExecGetValues()
4412 xmlRegAtomPtr atom;
4438 atom = trans->atom;
4455 } else if (atom == NULL) {
4461 ret = xmlRegCheckCharacter(atom, codepoint);
4462 if ((ret == 1) && (atom->min > 0) && (atom->max > 0)) {
4476 if (exec->transcount == atom->max) {
4487 if (exec->transcount >= atom->min) {
4502 ret = xmlRegCheckCharacter(atom, codepoint);
4505 if (exec->transcount < atom->min)
4543 if (trans->atom != NULL) {
4805 if (ctxt->atom == NULL) { in xmlFAParseCharProp()
4806 ctxt->atom = xmlRegNewAtom(ctxt, type); in xmlFAParseCharProp()
4807 if (ctxt->atom != NULL) in xmlFAParseCharProp()
4808 ctxt->atom->valuep = blockName; in xmlFAParseCharProp()
4809 } else if (ctxt->atom->type == XML_REGEXP_RANGES) { in xmlFAParseCharProp()
4810 xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg, in xmlFAParseCharProp()
4830 if (ctxt->atom == NULL) { in xmlFAParseCharClassEsc()
4831 ctxt->atom = xmlRegNewAtom(ctxt, XML_REGEXP_ANYCHAR); in xmlFAParseCharClassEsc()
4832 } else if (ctxt->atom->type == XML_REGEXP_RANGES) { in xmlFAParseCharClassEsc()
4833 xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg, in xmlFAParseCharClassEsc()
4866 ctxt->atom->neg = 1; in xmlFAParseCharClassEsc()
4877 if (ctxt->atom == NULL) { in xmlFAParseCharClassEsc()
4878 ctxt->atom = xmlRegNewAtom(ctxt, XML_REGEXP_CHARVAL); in xmlFAParseCharClassEsc()
4879 if (ctxt->atom != NULL) { in xmlFAParseCharClassEsc()
4882 ctxt->atom->codepoint = '\n'; in xmlFAParseCharClassEsc()
4885 ctxt->atom->codepoint = '\r'; in xmlFAParseCharClassEsc()
4888 ctxt->atom->codepoint = '\t'; in xmlFAParseCharClassEsc()
4891 ctxt->atom->codepoint = cur; in xmlFAParseCharClassEsc()
4894 } else if (ctxt->atom->type == XML_REGEXP_RANGES) { in xmlFAParseCharClassEsc()
4906 xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg, in xmlFAParseCharClassEsc()
4948 if (ctxt->atom == NULL) { in xmlFAParseCharClassEsc()
4949 ctxt->atom = xmlRegNewAtom(ctxt, type); in xmlFAParseCharClassEsc()
4950 } else if (ctxt->atom->type == XML_REGEXP_RANGES) { in xmlFAParseCharClassEsc()
4951 xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg, in xmlFAParseCharClassEsc()
5015 xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg, in xmlFAParseCharRange()
5048 xmlRegAtomAddRange(ctxt, ctxt->atom, ctxt->neg, in xmlFAParseCharRange()
5124 ctxt->atom = xmlRegNewAtom(ctxt, XML_REGEXP_RANGES); in xmlFAParseCharClass()
5125 if (ctxt->atom == NULL) in xmlFAParseCharClass()
5178 if (ctxt->atom != NULL) { in xmlFAParseQuantifier()
5180 ctxt->atom->quant = XML_REGEXP_QUANT_OPT; in xmlFAParseQuantifier()
5182 ctxt->atom->quant = XML_REGEXP_QUANT_MULT; in xmlFAParseQuantifier()
5184 ctxt->atom->quant = XML_REGEXP_QUANT_PLUS; in xmlFAParseQuantifier()
5216 if (ctxt->atom != NULL) { in xmlFAParseQuantifier()
5217 ctxt->atom->quant = XML_REGEXP_QUANT_RANGE; in xmlFAParseQuantifier()
5218 ctxt->atom->min = min; in xmlFAParseQuantifier()
5219 ctxt->atom->max = max; in xmlFAParseQuantifier()
5238 ctxt->atom = xmlRegNewAtom(ctxt, XML_REGEXP_CHARVAL); in xmlFAParseAtom()
5239 if (ctxt->atom == NULL) in xmlFAParseAtom()
5242 ctxt->atom->codepoint = codepoint; in xmlFAParseAtom()
5265 ctxt->atom = NULL; in xmlFAParseAtom()
5272 ctxt->atom = xmlRegNewAtom(ctxt, XML_REGEXP_SUBREG); in xmlFAParseAtom()
5273 if (ctxt->atom == NULL) in xmlFAParseAtom()
5275 ctxt->atom->start = start; in xmlFAParseAtom()
5276 ctxt->atom->start0 = start0; in xmlFAParseAtom()
5277 ctxt->atom->stop = ctxt->state; in xmlFAParseAtom()
5297 ctxt->atom = NULL; in xmlFAParsePiece()
5301 if (ctxt->atom == NULL) { in xmlFAParsePiece()
5327 (CUR=='|' || CUR==')') ? to : NULL, ctxt->atom) < 0) in xmlFAParseBranch()
5330 ctxt->atom = NULL; in xmlFAParseBranch()
5336 (CUR=='|' || CUR==')') ? to : NULL, ctxt->atom) < 0) in xmlFAParseBranch()
5339 ctxt->atom = NULL; in xmlFAParseBranch()
5688 xmlRegAtomPtr atom; in xmlAutomataNewTransition() local
5692 atom = xmlRegNewAtom(am, XML_REGEXP_STRING); in xmlAutomataNewTransition()
5693 if (atom == NULL) in xmlAutomataNewTransition()
5695 atom->data = data; in xmlAutomataNewTransition()
5696 if (atom == NULL) in xmlAutomataNewTransition()
5698 atom->valuep = xmlStrdup(token); in xmlAutomataNewTransition()
5700 if (xmlFAGenerateTransitions(am, from, to, atom) < 0) { in xmlAutomataNewTransition()
5701 xmlRegFreeAtom(atom); in xmlAutomataNewTransition()
5728 xmlRegAtomPtr atom; in xmlAutomataNewTransition2() local
5732 atom = xmlRegNewAtom(am, XML_REGEXP_STRING); in xmlAutomataNewTransition2()
5733 if (atom == NULL) in xmlAutomataNewTransition2()
5735 atom->data = data; in xmlAutomataNewTransition2()
5737 atom->valuep = xmlStrdup(token); in xmlAutomataNewTransition2()
5747 xmlRegFreeAtom(atom); in xmlAutomataNewTransition2()
5755 atom->valuep = str; in xmlAutomataNewTransition2()
5758 if (xmlFAGenerateTransitions(am, from, to, atom) < 0) { in xmlAutomataNewTransition2()
5759 xmlRegFreeAtom(atom); in xmlAutomataNewTransition2()
5788 xmlRegAtomPtr atom; in xmlAutomataNewNegTrans() local
5793 atom = xmlRegNewAtom(am, XML_REGEXP_STRING); in xmlAutomataNewNegTrans()
5794 if (atom == NULL) in xmlAutomataNewNegTrans()
5796 atom->data = data; in xmlAutomataNewNegTrans()
5797 atom->neg = 1; in xmlAutomataNewNegTrans()
5799 atom->valuep = xmlStrdup(token); in xmlAutomataNewNegTrans()
5809 xmlRegFreeAtom(atom); in xmlAutomataNewNegTrans()
5817 atom->valuep = str; in xmlAutomataNewNegTrans()
5819 snprintf((char *) err_msg, 199, "not %s", (const char *) atom->valuep); in xmlAutomataNewNegTrans()
5821 atom->valuep2 = xmlStrdup(err_msg); in xmlAutomataNewNegTrans()
5823 if (xmlFAGenerateTransitions(am, from, to, atom) < 0) { in xmlAutomataNewNegTrans()
5824 xmlRegFreeAtom(atom); in xmlAutomataNewNegTrans()
5856 xmlRegAtomPtr atom; in xmlAutomataNewCountTrans2() local
5865 atom = xmlRegNewAtom(am, XML_REGEXP_STRING); in xmlAutomataNewCountTrans2()
5866 if (atom == NULL) in xmlAutomataNewCountTrans2()
5869 atom->valuep = xmlStrdup(token); in xmlAutomataNewCountTrans2()
5879 xmlRegFreeAtom(atom); in xmlAutomataNewCountTrans2()
5887 atom->valuep = str; in xmlAutomataNewCountTrans2()
5889 atom->data = data; in xmlAutomataNewCountTrans2()
5891 atom->min = 1; in xmlAutomataNewCountTrans2()
5893 atom->min = min; in xmlAutomataNewCountTrans2()
5894 atom->max = max; in xmlAutomataNewCountTrans2()
5908 xmlRegStateAddTrans(am, from, atom, to, counter, -1); in xmlAutomataNewCountTrans2()
5909 xmlRegAtomPush(am, atom); in xmlAutomataNewCountTrans2()
5942 xmlRegAtomPtr atom; in xmlAutomataNewCountTrans() local
5951 atom = xmlRegNewAtom(am, XML_REGEXP_STRING); in xmlAutomataNewCountTrans()
5952 if (atom == NULL) in xmlAutomataNewCountTrans()
5954 atom->valuep = xmlStrdup(token); in xmlAutomataNewCountTrans()
5955 atom->data = data; in xmlAutomataNewCountTrans()
5957 atom->min = 1; in xmlAutomataNewCountTrans()
5959 atom->min = min; in xmlAutomataNewCountTrans()
5960 atom->max = max; in xmlAutomataNewCountTrans()
5974 xmlRegStateAddTrans(am, from, atom, to, counter, -1); in xmlAutomataNewCountTrans()
5975 xmlRegAtomPush(am, atom); in xmlAutomataNewCountTrans()
6011 xmlRegAtomPtr atom; in xmlAutomataNewOnceTrans2() local
6020 atom = xmlRegNewAtom(am, XML_REGEXP_STRING); in xmlAutomataNewOnceTrans2()
6021 if (atom == NULL) in xmlAutomataNewOnceTrans2()
6024 atom->valuep = xmlStrdup(token); in xmlAutomataNewOnceTrans2()
6034 xmlRegFreeAtom(atom); in xmlAutomataNewOnceTrans2()
6042 atom->valuep = str; in xmlAutomataNewOnceTrans2()
6044 atom->data = data; in xmlAutomataNewOnceTrans2()
6045 atom->quant = XML_REGEXP_QUANT_ONCEONLY; in xmlAutomataNewOnceTrans2()
6046 atom->min = min; in xmlAutomataNewOnceTrans2()
6047 atom->max = max; in xmlAutomataNewOnceTrans2()
6060 xmlRegStateAddTrans(am, from, atom, to, counter, -1); in xmlAutomataNewOnceTrans2()
6061 xmlRegAtomPush(am, atom); in xmlAutomataNewOnceTrans2()
6090 xmlRegAtomPtr atom; in xmlAutomataNewOnceTrans() local
6099 atom = xmlRegNewAtom(am, XML_REGEXP_STRING); in xmlAutomataNewOnceTrans()
6100 if (atom == NULL) in xmlAutomataNewOnceTrans()
6102 atom->valuep = xmlStrdup(token); in xmlAutomataNewOnceTrans()
6103 atom->data = data; in xmlAutomataNewOnceTrans()
6104 atom->quant = XML_REGEXP_QUANT_ONCEONLY; in xmlAutomataNewOnceTrans()
6105 atom->min = min; in xmlAutomataNewOnceTrans()
6106 atom->max = max; in xmlAutomataNewOnceTrans()
6119 xmlRegStateAddTrans(am, from, atom, to, counter, -1); in xmlAutomataNewOnceTrans()
6120 xmlRegAtomPush(am, atom); in xmlAutomataNewOnceTrans()