• Home
  • Raw
  • Download

Lines Matching refs:am

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