7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10 TITLE="Gnome XML Library Reference Manual"
11 HREF="book1.html"><LINK
13 TITLE="Libxml Library Reference"
14 HREF="libxml-lib.html"><LINK
17 HREF="libxml-xmlregexp.html"><LINK
20 HREF="libxml-xmlunicode.html"></HEAD
43 >Gnome XML Library Reference Manual</FONT
52 HREF="libxml-xmlregexp.html"
57 ><<< Previous Page</B
90 HREF="libxml-lib.html"
106 HREF="libxml-xmlunicode.html"
111 >Next Page >>></B
120 NAME="LIBXML-XMLAUTOMATA">xmlautomata</H1
128 >xmlautomata -- </DIV
130 CLASS="REFSYNOPSISDIV"
146 HREF="libxml-xmlautomata.html#XMLAUTOMATA"
150 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
154 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATE"
158 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
159 >xmlAutomataStatePtr</A
162 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
165 HREF="libxml-xmlautomata.html#XMLNEWAUTOMATA"
169 HREF="libxml-xmlautomata.html#XMLFREEAUTOMATA"
172 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
176 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
177 >xmlAutomataStatePtr</A
179 HREF="libxml-xmlautomata.html#XMLAUTOMATAGETINITSTATE"
180 >xmlAutomataGetInitState</A
182 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
186 HREF="libxml-xmlautomata.html#XMLAUTOMATASETFINALSTATE"
187 >xmlAutomataSetFinalState</A
189 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
193 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
194 >xmlAutomataStatePtr</A
197 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
198 >xmlAutomataStatePtr</A
200 HREF="libxml-xmlautomata.html#XMLAUTOMATANEWSTATE"
201 >xmlAutomataNewState</A
203 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
207 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
208 >xmlAutomataStatePtr</A
210 HREF="libxml-xmlautomata.html#XMLAUTOMATANEWTRANSITION"
211 >xmlAutomataNewTransition</A
214 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
218 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
219 >xmlAutomataStatePtr</A
222 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
223 >xmlAutomataStatePtr</A
226 HREF="libxml-tree.html#XMLCHAR"
231 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
232 >xmlAutomataStatePtr</A
234 HREF="libxml-xmlautomata.html#XMLAUTOMATANEWCOUNTTRANS"
235 >xmlAutomataNewCountTrans</A
238 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
242 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
243 >xmlAutomataStatePtr</A
246 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
247 >xmlAutomataStatePtr</A
250 HREF="libxml-tree.html#XMLCHAR"
257 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
258 >xmlAutomataStatePtr</A
260 HREF="libxml-xmlautomata.html#XMLAUTOMATANEWONCETRANS"
261 >xmlAutomataNewOnceTrans</A
263 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
267 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
268 >xmlAutomataStatePtr</A
271 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
272 >xmlAutomataStatePtr</A
275 HREF="libxml-tree.html#XMLCHAR"
282 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
283 >xmlAutomataStatePtr</A
285 HREF="libxml-xmlautomata.html#XMLAUTOMATANEWALLTRANS"
286 >xmlAutomataNewAllTrans</A
288 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
292 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
293 >xmlAutomataStatePtr</A
296 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
297 >xmlAutomataStatePtr</A
301 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
302 >xmlAutomataStatePtr</A
304 HREF="libxml-xmlautomata.html#XMLAUTOMATANEWEPSILON"
305 >xmlAutomataNewEpsilon</A
307 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
311 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
312 >xmlAutomataStatePtr</A
315 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
316 >xmlAutomataStatePtr</A
319 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
320 >xmlAutomataStatePtr</A
322 HREF="libxml-xmlautomata.html#XMLAUTOMATANEWCOUNTEDTRANS"
323 >xmlAutomataNewCountedTrans</A
326 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
330 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
331 >xmlAutomataStatePtr</A
334 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
335 >xmlAutomataStatePtr</A
339 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
340 >xmlAutomataStatePtr</A
342 HREF="libxml-xmlautomata.html#XMLAUTOMATANEWCOUNTERTRANS"
343 >xmlAutomataNewCounterTrans</A
346 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
350 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
351 >xmlAutomataStatePtr</A
354 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
355 >xmlAutomataStatePtr</A
359 HREF="libxml-xmlautomata.html#XMLAUTOMATANEWCOUNTER"
360 >xmlAutomataNewCounter</A
362 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
368 HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
371 HREF="libxml-xmlautomata.html#XMLAUTOMATACOMPILE"
372 >xmlAutomataCompile</A
374 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
378 HREF="libxml-xmlautomata.html#XMLAUTOMATAISDETERMINIST"
379 >xmlAutomataIsDeterminist</A
381 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
414 >struct xmlAutomata</H3
423 CLASS="PROGRAMLISTING"
424 >struct xmlAutomata;</PRE
438 NAME="XMLAUTOMATAPTR"
449 CLASS="PROGRAMLISTING"
450 >typedef xmlAutomata *xmlAutomataPtr;</PRE
455 >A libxml automata description, It can be compiled into a regexp</P
466 NAME="XMLAUTOMATASTATE"
468 >struct xmlAutomataState</H3
477 CLASS="PROGRAMLISTING"
478 >struct xmlAutomataState;</PRE
492 NAME="XMLAUTOMATASTATEPTR"
494 >xmlAutomataStatePtr</H3
503 CLASS="PROGRAMLISTING"
504 >typedef xmlAutomataState *xmlAutomataStatePtr;</PRE
509 >A state int the automata description,</P
520 NAME="XMLNEWAUTOMATA"
522 >xmlNewAutomata ()</H3
531 CLASS="PROGRAMLISTING"
533 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
535 > xmlNewAutomata (void);</PRE
540 >Create a new automata</P
544 CLASS="INFORMALTABLE"
572 >the new object or NULL in case of failure</TD
587 NAME="XMLFREEAUTOMATA"
589 >xmlFreeAutomata ()</H3
598 CLASS="PROGRAMLISTING"
599 >void xmlFreeAutomata (<A
600 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
611 CLASS="INFORMALTABLE"
653 NAME="XMLAUTOMATAGETINITSTATE"
655 >xmlAutomataGetInitState ()</H3
664 CLASS="PROGRAMLISTING"
666 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
667 >xmlAutomataStatePtr</A
668 > xmlAutomataGetInitState (<A
669 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
680 CLASS="INFORMALTABLE"
725 >the initial state of the automata</TD
740 NAME="XMLAUTOMATASETFINALSTATE"
742 >xmlAutomataSetFinalState ()</H3
751 CLASS="PROGRAMLISTING"
752 >int xmlAutomataSetFinalState (<A
753 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
757 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
758 >xmlAutomataStatePtr</A
764 >Makes that state a final state</P
768 CLASS="INFORMALTABLE"
812 > a state in this automata</TD
830 >0 or -1 in case of error</TD
845 NAME="XMLAUTOMATANEWSTATE"
847 >xmlAutomataNewState ()</H3
856 CLASS="PROGRAMLISTING"
858 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
859 >xmlAutomataStatePtr</A
860 > xmlAutomataNewState (<A
861 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
868 >Create a new disconnected state in the automata</P
872 CLASS="INFORMALTABLE"
917 >the new state or NULL in case of error</TD
932 NAME="XMLAUTOMATANEWTRANSITION"
934 >xmlAutomataNewTransition ()</H3
943 CLASS="PROGRAMLISTING"
945 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
946 >xmlAutomataStatePtr</A
947 > xmlAutomataNewTransition
949 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
953 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
954 >xmlAutomataStatePtr</A
957 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
958 >xmlAutomataStatePtr</A
961 HREF="libxml-tree.html#XMLCHAR"
974 > is NULL, this create first a new target state in the automata
975 and then adds a an epsilon transition from the <TT
985 CLASS="INFORMALTABLE"
1029 > the starting point of the transition</TD
1046 > the target point of the transition or NULL</TD
1098 >the target state or NULL in case of error</TD
1113 NAME="XMLAUTOMATANEWCOUNTTRANS"
1115 >xmlAutomataNewCountTrans ()</H3
1124 CLASS="PROGRAMLISTING"
1126 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1127 >xmlAutomataStatePtr</A
1128 > xmlAutomataNewCountTrans
1130 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
1134 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1135 >xmlAutomataStatePtr</A
1138 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1139 >xmlAutomataStatePtr</A
1142 HREF="libxml-tree.html#XMLCHAR"
1157 > is NULL, this create first a new target state in the automata
1158 and then adds a transition from the <TT
1163 > state to the target state
1164 activated by a succession of input of value <TT
1184 CLASS="INFORMALTABLE"
1228 > the starting point of the transition</TD
1245 > the target point of the transition or NULL</TD
1262 > the input string associated to that transition</TD
1279 > the minimum successive occurences of token</TD
1331 >the target state or NULL in case of error</TD
1346 NAME="XMLAUTOMATANEWONCETRANS"
1348 >xmlAutomataNewOnceTrans ()</H3
1357 CLASS="PROGRAMLISTING"
1359 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1360 >xmlAutomataStatePtr</A
1361 > xmlAutomataNewOnceTrans (<A
1362 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
1366 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1367 >xmlAutomataStatePtr</A
1370 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1371 >xmlAutomataStatePtr</A
1374 HREF="libxml-tree.html#XMLCHAR"
1389 > is NULL, this create first a new target state in the automata
1390 and then adds a transition from the <TT
1395 > state to the target state
1396 activated by a succession of input of value <TT
1412 >, moreover that transistion can only be crossed
1417 CLASS="INFORMALTABLE"
1461 > the starting point of the transition</TD
1478 > the target point of the transition or NULL</TD
1495 > the input string associated to that transition</TD
1512 > the minimum successive occurences of token</TD
1564 >the target state or NULL in case of error</TD
1579 NAME="XMLAUTOMATANEWALLTRANS"
1581 >xmlAutomataNewAllTrans ()</H3
1590 CLASS="PROGRAMLISTING"
1592 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1593 >xmlAutomataStatePtr</A
1594 > xmlAutomataNewAllTrans (<A
1595 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
1599 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1600 >xmlAutomataStatePtr</A
1603 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1604 >xmlAutomataStatePtr</A
1616 > is NULL, this create first a new target state in the automata
1617 and then adds a an ALL transition from the <TT
1623 target state. That transition is an epsilon transition allowed only when
1624 all transitions from the <TT
1629 > node have been activated.</P
1633 CLASS="INFORMALTABLE"
1677 > the starting point of the transition</TD
1694 > the target point of the transition or NULL</TD
1729 >the target state or NULL in case of error</TD
1744 NAME="XMLAUTOMATANEWEPSILON"
1746 >xmlAutomataNewEpsilon ()</H3
1755 CLASS="PROGRAMLISTING"
1757 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1758 >xmlAutomataStatePtr</A
1759 > xmlAutomataNewEpsilon (<A
1760 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
1764 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1765 >xmlAutomataStatePtr</A
1768 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1769 >xmlAutomataStatePtr</A
1777 CLASS="INFORMALTABLE"
1871 NAME="XMLAUTOMATANEWCOUNTEDTRANS"
1873 >xmlAutomataNewCountedTrans ()</H3
1882 CLASS="PROGRAMLISTING"
1884 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1885 >xmlAutomataStatePtr</A
1886 > xmlAutomataNewCountedTrans
1888 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
1892 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1893 >xmlAutomataStatePtr</A
1896 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
1897 >xmlAutomataStatePtr</A
1909 > is NULL, this create first a new target state in the automata
1910 and then adds an epsilon transition from the <TT
1915 > state to the target state
1916 which will increment the counter provided</P
1920 CLASS="INFORMALTABLE"
1964 > the starting point of the transition</TD
1981 > the target point of the transition or NULL</TD
1998 > the counter associated to that transition</TD
2016 >the target state or NULL in case of error</TD
2031 NAME="XMLAUTOMATANEWCOUNTERTRANS"
2033 >xmlAutomataNewCounterTrans ()</H3
2042 CLASS="PROGRAMLISTING"
2044 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
2045 >xmlAutomataStatePtr</A
2046 > xmlAutomataNewCounterTrans
2048 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
2052 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
2053 >xmlAutomataStatePtr</A
2056 HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR"
2057 >xmlAutomataStatePtr</A
2069 > is NULL, this create first a new target state in the automata
2070 and then adds an epsilon transition from the <TT
2075 > state to the target state
2076 which will be allowed only if the counter is within the right range.</P
2080 CLASS="INFORMALTABLE"
2124 > the starting point of the transition</TD
2141 > the target point of the transition or NULL</TD
2158 > the counter associated to that transition</TD
2176 >the target state or NULL in case of error</TD
2191 NAME="XMLAUTOMATANEWCOUNTER"
2193 >xmlAutomataNewCounter ()</H3
2202 CLASS="PROGRAMLISTING"
2203 >int xmlAutomataNewCounter (<A
2204 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
2213 >Create a new counter</P
2217 CLASS="INFORMALTABLE"
2261 > the minimal value on the counter</TD
2278 > the maximal value on the counter</TD
2296 >the counter number or -1 in case of error</TD
2311 NAME="XMLAUTOMATACOMPILE"
2313 >xmlAutomataCompile ()</H3
2322 CLASS="PROGRAMLISTING"
2324 HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
2326 > xmlAutomataCompile (<A
2327 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
2334 >Compile the automata into a Reg Exp ready for being executed.
2335 The automata should be free after this point.</P
2339 CLASS="INFORMALTABLE"
2384 >the compiled regexp or NULL in case of error</TD
2399 NAME="XMLAUTOMATAISDETERMINIST"
2401 >xmlAutomataIsDeterminist ()</H3
2410 CLASS="PROGRAMLISTING"
2411 >int xmlAutomataIsDeterminist (<A
2412 HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR"
2419 >Checks if an automata is determinist.</P
2423 CLASS="INFORMALTABLE"
2468 >1 if true, 0 if not, and -1 in case of error</TD
2480 CLEAR="all"><BR><TABLE
2492 HREF="libxml-xmlregexp.html"
2497 ><<< Previous Page</B
2530 HREF="libxml-lib.html"
2546 HREF="libxml-xmlunicode.html"
2551 >Next Page >>></B