Home | History | Annotate | Download | only in libxml2

Lines Matching refs:am

36     xmlAutomataPtr am;
51 am = xmlNewAutomata();
52 if (am == NULL) {
58 states[0] = xmlAutomataGetInitState(am);
62 xmlFreeAutomata(am);
78 if ((am != NULL) && (expr[0] == 't') && (expr[1] == ' ')) {
89 states[from] = xmlAutomataNewState(am);
98 states[to] = xmlAutomataNewState(am);
100 xmlAutomataNewTransition(am, states[from], states[to],
102 } else if ((am != NULL) && (expr[0] == 'e') && (expr[1] == ' ')) {
113 states[from] = xmlAutomataNewState(am);
117 states[to] = xmlAutomataNewState(am);
118 xmlAutomataNewEpsilon(am, states[from], states[to]);
119 } else if ((am != NULL) && (expr[0] == 'f') && (expr[1] == ' ')) {
129 xmlAutomataSetFinalState(am, states[state]);
130 } else if ((am != NULL) && (expr[0] == 'c') && (expr[1] == ' ')) {
142 states[from] = xmlAutomataNewState(am);
151 states[to] = xmlAutomataNewState(am);
167 xmlAutomataNewCountTrans(am, states[from], states[to],
169 } else if ((am != NULL) && (expr[0] == '-') && (expr[1] == '-')) {
171 regexp = xmlAutomataCompile(am);
172 xmlFreeAutomata(am);
173 am = NULL;
213 if (am != NULL)
214 xmlFreeAutomata(am);
223 xmlAutomataPtr am;
228 am = xmlNewAutomata();
229 start = xmlAutomataGetInitState(am);
232 cur = xmlAutomataNewTransition(am, start, NULL, BAD_CAST"a", NULL);
233 xmlAutomataNewTransition(am, cur, cur, BAD_CAST"b", NULL);
234 xmlAutomataNewTransition(am, cur, cur, BAD_CAST"a", NULL);
235 cur = xmlAutomataNewCountTrans(am, cur, NULL, BAD_CAST"a", 2, 3, NULL);
236 xmlAutomataSetFinalState(am, cur);
239 regexp = xmlAutomataCompile(am);
240 xmlFreeAutomata(am);