• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/libxml/

Lines Matching defs:am

5327     xmlAutomataPtr am;
5335 am = xmlNewAutomata();
5336 if (am->states != NULL) {
5339 for (i = 0;i < am->nbStates;i++)
5340 xmlRegFreeState(am->states[i]);
5341 xmlFree(am->states);
5343 am->nbAtoms = comp->nbAtoms;
5344 am->atoms = comp->atoms;
5345 am->nbStates = comp->nbStates;
5346 am->states = comp->states;
5347 am->determinist = -1;
5348 ret = xmlFAComputesDeterminism(am);
5349 am->atoms = NULL;
5350 am->states = NULL;
5351 xmlFreeAutomata(am);
5435 * @am: an automata
5440 xmlFreeAutomata(xmlAutomataPtr am) {
5441 if (am == NULL)
5443 xmlRegFreeParserCtxt(am);
5448 * @am: an automata
5455 xmlAutomataGetInitState(xmlAutomataPtr am) {
5456 if (am == NULL)
5458 return(am->start);
5463 * @am: an automata
5471 xmlAutomataSetFinalState(xmlAutomataPtr am, xmlAutomataStatePtr state) {
5472 if ((am == NULL) || (state == NULL))
5480 * @am: an automata
5493 xmlAutomataNewTransition(xmlAutomataPtr am, xmlAutomataStatePtr from,
5498 if ((am == NULL) || (from == NULL) || (token == NULL))
5500 atom = xmlRegNewAtom(am, XML_REGEXP_STRING);
5508 if (xmlFAGenerateTransitions(am, from, to, atom) < 0) {
5513 return(am->state);
5519 * @am: an automata
5533 xmlAutomataNewTransition2(xmlAutomataPtr am, xmlAutomataStatePtr from,
5538 if ((am == NULL) || (from == NULL) || (token == NULL))
5540 atom = xmlRegNewAtom(am, XML_REGEXP_STRING);
5566 if (xmlFAGenerateTransitions(am, from, to, atom) < 0) {
5571 return(am->state);
5577 * @am: an automata
5593 xmlAutomataNewNegTrans(xmlAutomataPtr am, xmlAutomataStatePtr from,
5599 if ((am == NULL) || (from == NULL) || (token == NULL))
5601 atom = xmlRegNewAtom(am, XML_REGEXP_STRING);
5631 if (xmlFAGenerateTransitions(am, from, to, atom) < 0) {
5635 am->negs++;
5637 return(am->state);
5643 * @am: an automata
5660 xmlAutomataNewCountTrans2(xmlAutomataPtr am, xmlAutomataStatePtr from,
5667 if ((am == NULL) || (from == NULL) || (token == NULL))
5673 atom = xmlRegNewAtom(am, XML_REGEXP_STRING);
5707 counter = xmlRegGetCounter(am);
5708 am->counters[counter].min = min;
5709 am->counters[counter].max = max;
5711 /* xmlFAGenerateTransitions(am, from, to, atom); */
5713 to = xmlRegNewState(am);
5714 xmlRegStatePush(am, to);
5716 xmlRegStateAddTrans(am, from, atom, to, counter, -1);
5717 xmlRegAtomPush(am, atom);
5718 am->state = to;
5721 to = am->state;
5725 xmlFAGenerateEpsilonTransition(am, from, to);
5731 * @am: an automata
5747 xmlAutomataNewCountTrans(xmlAutomataPtr am, xmlAutomataStatePtr from,
5753 if ((am == NULL) || (from == NULL) || (token == NULL))
5759 atom = xmlRegNewAtom(am, XML_REGEXP_STRING);
5773 counter = xmlRegGetCounter(am);
5774 am->counters[counter].min = min;
5775 am->counters[counter].max = max;
5777 /* xmlFAGenerateTransitions(am, from, to, atom); */
5779 to = xmlRegNewState(am);
5780 xmlRegStatePush(am, to);
5782 xmlRegStateAddTrans(am, from, atom, to, counter, -1);
5783 xmlRegAtomPush(am, atom);
5784 am->state = to;
5787 to = am->state;
5791 xmlFAGenerateEpsilonTransition(am, from, to);
5797 * @am: an automata
5815 xmlAutomataNewOnceTrans2(xmlAutomataPtr am, xmlAutomataStatePtr from,
5822 if ((am == NULL) || (from == NULL) || (token == NULL))
5828 atom = xmlRegNewAtom(am, XML_REGEXP_STRING);
5859 counter = xmlRegGetCounter(am);
5860 am->counters[counter].min = 1;
5861 am->counters[counter].max = 1;
5863 /* xmlFAGenerateTransitions(am, from, to, atom); */
5865 to = xmlRegNewState(am);
5866 xmlRegStatePush(am, to);
5868 xmlRegStateAddTrans(am, from, atom, to, counter, -1);
5869 xmlRegAtomPush(am, atom);
5870 am->state = to;
5878 * @am: an automata
5895 xmlAutomataNewOnceTrans(xmlAutomataPtr am, xmlAutomataStatePtr from,
5901 if ((am == NULL) || (from == NULL) || (token == NULL))
5907 atom = xmlRegNewAtom(am, XML_REGEXP_STRING);
5918 counter = xmlRegGetCounter(am);
5919 am->counters[counter].min = 1;
5920 am->counters[counter].max = 1;
5922 /* xmlFAGenerateTransitions(am, from, to, atom); */
5924 to = xmlRegNewState(am);
5925 xmlRegStatePush(am, to);
5927 xmlRegStateAddTrans(am, from, atom, to, counter, -1);
5928 xmlRegAtomPush(am, atom);
5929 am->state = to;
5935 * @am: an automata
5942 xmlAutomataNewState(xmlAutomataPtr am) {
5945 if (am == NULL)
5947 to = xmlRegNewState(am);
5948 xmlRegStatePush(am, to);
5954 * @am: an automata
5965 xmlAutomataNewEpsilon(xmlAutomataPtr am, xmlAutomataStatePtr from,
5967 if ((am == NULL) || (from == NULL))
5969 xmlFAGenerateEpsilonTransition(am, from, to);
5971 return(am->state);
5977 * @am: an automata
5990 xmlAutomataNewAllTrans(xmlAutomataPtr am, xmlAutomataStatePtr from,
5992 if ((am == NULL) || (from == NULL))
5994 xmlFAGenerateAllTransition(am, from, to, lax);
5996 return(am->state);
6002 * @am: an automata
6011 xmlAutomataNewCounter(xmlAutomataPtr am, int min, int max) {
6014 if (am == NULL)
6017 ret = xmlRegGetCounter(am);
6020 am->counters[ret].min = min;
6021 am->counters[ret].max = max;
6027 * @am: an automata
6039 xmlAutomataNewCountedTrans(xmlAutomataPtr am, xmlAutomataStatePtr from,
6041 if ((am == NULL) || (from == NULL) || (counter < 0))
6043 xmlFAGenerateCountedEpsilonTransition(am, from, to, counter);
6045 return(am->state);
6051 * @am: an automata
6063 xmlAutomataNewCounterTrans(xmlAutomataPtr am, xmlAutomataStatePtr from,
6065 if ((am == NULL) || (from == NULL) || (counter < 0))
6067 xmlFAGenerateCountedTransition(am, from, to, counter);
6069 return(am->state);
6075 * @am: an automata
6083 xmlAutomataCompile(xmlAutomataPtr am) {
6086 if ((am == NULL) || (am->error != 0)) return(NULL);
6087 xmlFAEliminateEpsilonTransitions(am);
6088 /* xmlFAComputesDeterminism(am); */
6089 ret = xmlRegEpxFromParse(am);
6096 * @am: an automata
6103 xmlAutomataIsDeterminist(xmlAutomataPtr am) {
6106 if (am == NULL)
6109 ret = xmlFAComputesDeterminism(am);