MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlAutomataCompile

Function xmlAutomataCompile

ThirdParty/libxml2/vtklibxml2/xmlregexp.c:6286–6298  ·  view source on GitHub ↗

* xmlAutomataCompile: * @am: an automata * * Compile the automata into a Reg Exp ready for being executed. * The automata should be free after this point. * * Returns the compiled regexp or NULL in case of error */

Source from the content-addressed store, hash-verified

6284 * Returns the compiled regexp or NULL in case of error
6285 */
6286xmlRegexpPtr
6287xmlAutomataCompile(xmlAutomataPtr am) {
6288 xmlRegexpPtr ret;
6289
6290 if ((am == NULL) || (am->error != 0)) return(NULL);
6291 xmlFAEliminateEpsilonTransitions(am);
6292 if (am->error != 0)
6293 return(NULL);
6294 /* xmlFAComputesDeterminism(am); */
6295 ret = xmlRegEpxFromParse(am);
6296
6297 return(ret);
6298}
6299
6300/**
6301 * xmlAutomataIsDeterminist:

Callers 4

automataTestFunction · 0.85
xmlRelaxNGCompileFunction · 0.85

Calls 2

xmlRegEpxFromParseFunction · 0.85

Tested by 1

automataTestFunction · 0.68