libxml-xmlautomata.html revision c2d4a93d4f6ecc658e63ddc416be918318cea7a9
1<HTML 2><HEAD 3><TITLE 4>xmlautomata</TITLE 5><META 6NAME="GENERATOR" 7CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ 8"><LINK 9REL="HOME" 10TITLE="Gnome XML Library Reference Manual" 11HREF="book1.html"><LINK 12REL="UP" 13TITLE="Libxml Library Reference" 14HREF="libxml-lib.html"><LINK 15REL="PREVIOUS" 16TITLE="xmlregexp" 17HREF="libxml-xmlregexp.html"><LINK 18REL="NEXT" 19TITLE="xmlunicode" 20HREF="libxml-xmlunicode.html"></HEAD 21><BODY 22CLASS="REFENTRY" 23BGCOLOR="#FFFFFF" 24TEXT="#000000" 25LINK="#0000FF" 26VLINK="#840084" 27ALINK="#0000FF" 28><DIV 29CLASS="NAVHEADER" 30><TABLE 31WIDTH="100%" 32BORDER="0" 33BGCOLOR="#000000" 34CELLPADDING="1" 35CELLSPACING="0" 36><TR 37><TH 38COLSPAN="4" 39ALIGN="center" 40><FONT 41COLOR="#FFFFFF" 42SIZE="5" 43>Gnome XML Library Reference Manual</FONT 44></TH 45></TR 46><TR 47><TD 48WIDTH="25%" 49BGCOLOR="#C00000" 50ALIGN="left" 51><A 52HREF="libxml-xmlregexp.html" 53><FONT 54COLOR="#FFFFFF" 55SIZE="3" 56><B 57><<< Previous Page</B 58></FONT 59></A 60></TD 61><TD 62WIDTH="25%" 63BGCOLOR="#0000C0" 64ALIGN="center" 65><FONT 66COLOR="#FFFFFF" 67SIZE="3" 68><B 69><A 70HREF="book1.html" 71><FONT 72COLOR="#FFFFFF" 73SIZE="3" 74><B 75>Home</B 76></FONT 77></A 78></B 79></FONT 80></TD 81><TD 82WIDTH="25%" 83BGCOLOR="#00C000" 84ALIGN="center" 85><FONT 86COLOR="#FFFFFF" 87SIZE="3" 88><B 89><A 90HREF="libxml-lib.html" 91><FONT 92COLOR="#FFFFFF" 93SIZE="3" 94><B 95>Up</B 96></FONT 97></A 98></B 99></FONT 100></TD 101><TD 102WIDTH="25%" 103BGCOLOR="#C00000" 104ALIGN="right" 105><A 106HREF="libxml-xmlunicode.html" 107><FONT 108COLOR="#FFFFFF" 109SIZE="3" 110><B 111>Next Page >>></B 112></FONT 113></A 114></TD 115></TR 116></TABLE 117></DIV 118><H1 119><A 120NAME="LIBXML-XMLAUTOMATA" 121></A 122>xmlautomata</H1 123><DIV 124CLASS="REFNAMEDIV" 125><A 126NAME="AEN29908" 127></A 128><H2 129>Name</H2 130>xmlautomata -- </DIV 131><DIV 132CLASS="REFSYNOPSISDIV" 133><A 134NAME="AEN29911" 135></A 136><H2 137>Synopsis</H2 138><TABLE 139BORDER="0" 140BGCOLOR="#D6E8FF" 141WIDTH="100%" 142CELLPADDING="6" 143><TR 144><TD 145><PRE 146CLASS="SYNOPSIS" 147> 148 149struct <A 150HREF="libxml-xmlautomata.html#XMLAUTOMATA" 151>xmlAutomata</A 152>; 153typedef <A 154HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 155>xmlAutomataPtr</A 156>; 157struct <A 158HREF="libxml-xmlautomata.html#XMLAUTOMATASTATE" 159>xmlAutomataState</A 160>; 161typedef <A 162HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 163>xmlAutomataStatePtr</A 164>; 165<A 166HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 167>xmlAutomataPtr</A 168> <A 169HREF="libxml-xmlautomata.html#XMLNEWAUTOMATA" 170>xmlNewAutomata</A 171> (void); 172void <A 173HREF="libxml-xmlautomata.html#XMLFREEAUTOMATA" 174>xmlFreeAutomata</A 175> (<A 176HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 177>xmlAutomataPtr</A 178> am); 179<A 180HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 181>xmlAutomataStatePtr</A 182> <A 183HREF="libxml-xmlautomata.html#XMLAUTOMATAGETINITSTATE" 184>xmlAutomataGetInitState</A 185> (<A 186HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 187>xmlAutomataPtr</A 188> am); 189int <A 190HREF="libxml-xmlautomata.html#XMLAUTOMATASETFINALSTATE" 191>xmlAutomataSetFinalState</A 192> (<A 193HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 194>xmlAutomataPtr</A 195> am, 196 <A 197HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 198>xmlAutomataStatePtr</A 199> state); 200<A 201HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 202>xmlAutomataStatePtr</A 203> <A 204HREF="libxml-xmlautomata.html#XMLAUTOMATANEWSTATE" 205>xmlAutomataNewState</A 206> (<A 207HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 208>xmlAutomataPtr</A 209> am); 210<A 211HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 212>xmlAutomataStatePtr</A 213> <A 214HREF="libxml-xmlautomata.html#XMLAUTOMATANEWTRANSITION" 215>xmlAutomataNewTransition</A 216> 217 (<A 218HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 219>xmlAutomataPtr</A 220> am, 221 <A 222HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 223>xmlAutomataStatePtr</A 224> from, 225 <A 226HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 227>xmlAutomataStatePtr</A 228> to, 229 const <A 230HREF="libxml-tree.html#XMLCHAR" 231>xmlChar</A 232> *token, 233 void *data); 234<A 235HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 236>xmlAutomataStatePtr</A 237> <A 238HREF="libxml-xmlautomata.html#XMLAUTOMATANEWCOUNTTRANS" 239>xmlAutomataNewCountTrans</A 240> 241 (<A 242HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 243>xmlAutomataPtr</A 244> am, 245 <A 246HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 247>xmlAutomataStatePtr</A 248> from, 249 <A 250HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 251>xmlAutomataStatePtr</A 252> to, 253 const <A 254HREF="libxml-tree.html#XMLCHAR" 255>xmlChar</A 256> *token, 257 int min, 258 int max, 259 void *data); 260<A 261HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 262>xmlAutomataStatePtr</A 263> <A 264HREF="libxml-xmlautomata.html#XMLAUTOMATANEWONCETRANS" 265>xmlAutomataNewOnceTrans</A 266> (<A 267HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 268>xmlAutomataPtr</A 269> am, 270 <A 271HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 272>xmlAutomataStatePtr</A 273> from, 274 <A 275HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 276>xmlAutomataStatePtr</A 277> to, 278 const <A 279HREF="libxml-tree.html#XMLCHAR" 280>xmlChar</A 281> *token, 282 int min, 283 int max, 284 void *data); 285<A 286HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 287>xmlAutomataStatePtr</A 288> <A 289HREF="libxml-xmlautomata.html#XMLAUTOMATANEWALLTRANS" 290>xmlAutomataNewAllTrans</A 291> (<A 292HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 293>xmlAutomataPtr</A 294> am, 295 <A 296HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 297>xmlAutomataStatePtr</A 298> from, 299 <A 300HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 301>xmlAutomataStatePtr</A 302> to, 303 int lax); 304<A 305HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 306>xmlAutomataStatePtr</A 307> <A 308HREF="libxml-xmlautomata.html#XMLAUTOMATANEWEPSILON" 309>xmlAutomataNewEpsilon</A 310> (<A 311HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 312>xmlAutomataPtr</A 313> am, 314 <A 315HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 316>xmlAutomataStatePtr</A 317> from, 318 <A 319HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 320>xmlAutomataStatePtr</A 321> to); 322<A 323HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 324>xmlAutomataStatePtr</A 325> <A 326HREF="libxml-xmlautomata.html#XMLAUTOMATANEWCOUNTEDTRANS" 327>xmlAutomataNewCountedTrans</A 328> 329 (<A 330HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 331>xmlAutomataPtr</A 332> am, 333 <A 334HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 335>xmlAutomataStatePtr</A 336> from, 337 <A 338HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 339>xmlAutomataStatePtr</A 340> to, 341 int counter); 342<A 343HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 344>xmlAutomataStatePtr</A 345> <A 346HREF="libxml-xmlautomata.html#XMLAUTOMATANEWCOUNTERTRANS" 347>xmlAutomataNewCounterTrans</A 348> 349 (<A 350HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 351>xmlAutomataPtr</A 352> am, 353 <A 354HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 355>xmlAutomataStatePtr</A 356> from, 357 <A 358HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 359>xmlAutomataStatePtr</A 360> to, 361 int counter); 362int <A 363HREF="libxml-xmlautomata.html#XMLAUTOMATANEWCOUNTER" 364>xmlAutomataNewCounter</A 365> (<A 366HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 367>xmlAutomataPtr</A 368> am, 369 int min, 370 int max); 371<A 372HREF="libxml-xmlregexp.html#XMLREGEXPPTR" 373>xmlRegexpPtr</A 374> <A 375HREF="libxml-xmlautomata.html#XMLAUTOMATACOMPILE" 376>xmlAutomataCompile</A 377> (<A 378HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 379>xmlAutomataPtr</A 380> am); 381int <A 382HREF="libxml-xmlautomata.html#XMLAUTOMATAISDETERMINIST" 383>xmlAutomataIsDeterminist</A 384> (<A 385HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 386>xmlAutomataPtr</A 387> am);</PRE 388></TD 389></TR 390></TABLE 391></DIV 392><DIV 393CLASS="REFSECT1" 394><A 395NAME="AEN29976" 396></A 397><H2 398>Description</H2 399><P 400></P 401></DIV 402><DIV 403CLASS="REFSECT1" 404><A 405NAME="AEN29979" 406></A 407><H2 408>Details</H2 409><DIV 410CLASS="REFSECT2" 411><A 412NAME="AEN29981" 413></A 414><H3 415><A 416NAME="XMLAUTOMATA" 417></A 418>struct xmlAutomata</H3 419><TABLE 420BORDER="0" 421BGCOLOR="#D6E8FF" 422WIDTH="100%" 423CELLPADDING="6" 424><TR 425><TD 426><PRE 427CLASS="PROGRAMLISTING" 428>struct xmlAutomata;</PRE 429></TD 430></TR 431></TABLE 432><P 433></P 434></DIV 435><HR><DIV 436CLASS="REFSECT2" 437><A 438NAME="AEN29986" 439></A 440><H3 441><A 442NAME="XMLAUTOMATAPTR" 443></A 444>xmlAutomataPtr</H3 445><P 446>A libxml automata description, It can be compiled into a regexp</P 447><P 448></P 449></DIV 450><HR><DIV 451CLASS="REFSECT2" 452><A 453NAME="AEN29991" 454></A 455><H3 456><A 457NAME="XMLAUTOMATASTATE" 458></A 459>struct xmlAutomataState</H3 460><TABLE 461BORDER="0" 462BGCOLOR="#D6E8FF" 463WIDTH="100%" 464CELLPADDING="6" 465><TR 466><TD 467><PRE 468CLASS="PROGRAMLISTING" 469>struct xmlAutomataState;</PRE 470></TD 471></TR 472></TABLE 473><P 474></P 475></DIV 476><HR><DIV 477CLASS="REFSECT2" 478><A 479NAME="AEN29996" 480></A 481><H3 482><A 483NAME="XMLAUTOMATASTATEPTR" 484></A 485>xmlAutomataStatePtr</H3 486><P 487>A state int the automata description,</P 488><P 489></P 490></DIV 491><HR><DIV 492CLASS="REFSECT2" 493><A 494NAME="AEN30001" 495></A 496><H3 497><A 498NAME="XMLNEWAUTOMATA" 499></A 500>xmlNewAutomata ()</H3 501><TABLE 502BORDER="0" 503BGCOLOR="#D6E8FF" 504WIDTH="100%" 505CELLPADDING="6" 506><TR 507><TD 508><PRE 509CLASS="PROGRAMLISTING" 510><A 511HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 512>xmlAutomataPtr</A 513> xmlNewAutomata (void);</PRE 514></TD 515></TR 516></TABLE 517><P 518>Create a new automata</P 519><P 520></P 521><DIV 522CLASS="INFORMALTABLE" 523><A 524NAME="AEN30008" 525></A 526><P 527></P 528><TABLE 529BORDER="0" 530WIDTH="100%" 531BGCOLOR="#FFD0D0" 532CELLSPACING="0" 533CELLPADDING="4" 534CLASS="CALSTABLE" 535><TBODY 536><TR 537><TD 538WIDTH="20%" 539ALIGN="RIGHT" 540VALIGN="TOP" 541><SPAN 542CLASS="emphasis" 543><I 544CLASS="EMPHASIS" 545>Returns</I 546></SPAN 547> :</TD 548><TD 549WIDTH="80%" 550ALIGN="LEFT" 551VALIGN="TOP" 552> </TD 553></TR 554></TBODY 555></TABLE 556><P 557></P 558></DIV 559></DIV 560><HR><DIV 561CLASS="REFSECT2" 562><A 563NAME="AEN30017" 564></A 565><H3 566><A 567NAME="XMLFREEAUTOMATA" 568></A 569>xmlFreeAutomata ()</H3 570><TABLE 571BORDER="0" 572BGCOLOR="#D6E8FF" 573WIDTH="100%" 574CELLPADDING="6" 575><TR 576><TD 577><PRE 578CLASS="PROGRAMLISTING" 579>void xmlFreeAutomata (<A 580HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 581>xmlAutomataPtr</A 582> am);</PRE 583></TD 584></TR 585></TABLE 586><P 587>Free an automata</P 588><P 589></P 590><DIV 591CLASS="INFORMALTABLE" 592><A 593NAME="AEN30024" 594></A 595><P 596></P 597><TABLE 598BORDER="0" 599WIDTH="100%" 600BGCOLOR="#FFD0D0" 601CELLSPACING="0" 602CELLPADDING="4" 603CLASS="CALSTABLE" 604><TBODY 605><TR 606><TD 607WIDTH="20%" 608ALIGN="RIGHT" 609VALIGN="TOP" 610><TT 611CLASS="PARAMETER" 612><I 613>am</I 614></TT 615> :</TD 616><TD 617WIDTH="80%" 618ALIGN="LEFT" 619VALIGN="TOP" 620> </TD 621></TR 622></TBODY 623></TABLE 624><P 625></P 626></DIV 627></DIV 628><HR><DIV 629CLASS="REFSECT2" 630><A 631NAME="AEN30033" 632></A 633><H3 634><A 635NAME="XMLAUTOMATAGETINITSTATE" 636></A 637>xmlAutomataGetInitState ()</H3 638><TABLE 639BORDER="0" 640BGCOLOR="#D6E8FF" 641WIDTH="100%" 642CELLPADDING="6" 643><TR 644><TD 645><PRE 646CLASS="PROGRAMLISTING" 647><A 648HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 649>xmlAutomataStatePtr</A 650> xmlAutomataGetInitState (<A 651HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 652>xmlAutomataPtr</A 653> am);</PRE 654></TD 655></TR 656></TABLE 657><P 658>Initial state lookup</P 659><P 660></P 661><DIV 662CLASS="INFORMALTABLE" 663><A 664NAME="AEN30041" 665></A 666><P 667></P 668><TABLE 669BORDER="0" 670WIDTH="100%" 671BGCOLOR="#FFD0D0" 672CELLSPACING="0" 673CELLPADDING="4" 674CLASS="CALSTABLE" 675><TBODY 676><TR 677><TD 678WIDTH="20%" 679ALIGN="RIGHT" 680VALIGN="TOP" 681><TT 682CLASS="PARAMETER" 683><I 684>am</I 685></TT 686> :</TD 687><TD 688WIDTH="80%" 689ALIGN="LEFT" 690VALIGN="TOP" 691> </TD 692></TR 693><TR 694><TD 695WIDTH="20%" 696ALIGN="RIGHT" 697VALIGN="TOP" 698><SPAN 699CLASS="emphasis" 700><I 701CLASS="EMPHASIS" 702>Returns</I 703></SPAN 704> :</TD 705><TD 706WIDTH="80%" 707ALIGN="LEFT" 708VALIGN="TOP" 709> </TD 710></TR 711></TBODY 712></TABLE 713><P 714></P 715></DIV 716></DIV 717><HR><DIV 718CLASS="REFSECT2" 719><A 720NAME="AEN30054" 721></A 722><H3 723><A 724NAME="XMLAUTOMATASETFINALSTATE" 725></A 726>xmlAutomataSetFinalState ()</H3 727><TABLE 728BORDER="0" 729BGCOLOR="#D6E8FF" 730WIDTH="100%" 731CELLPADDING="6" 732><TR 733><TD 734><PRE 735CLASS="PROGRAMLISTING" 736>int xmlAutomataSetFinalState (<A 737HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 738>xmlAutomataPtr</A 739> am, 740 <A 741HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 742>xmlAutomataStatePtr</A 743> state);</PRE 744></TD 745></TR 746></TABLE 747><P 748>Makes that state a final state</P 749><P 750></P 751><DIV 752CLASS="INFORMALTABLE" 753><A 754NAME="AEN30062" 755></A 756><P 757></P 758><TABLE 759BORDER="0" 760WIDTH="100%" 761BGCOLOR="#FFD0D0" 762CELLSPACING="0" 763CELLPADDING="4" 764CLASS="CALSTABLE" 765><TBODY 766><TR 767><TD 768WIDTH="20%" 769ALIGN="RIGHT" 770VALIGN="TOP" 771><TT 772CLASS="PARAMETER" 773><I 774>am</I 775></TT 776> :</TD 777><TD 778WIDTH="80%" 779ALIGN="LEFT" 780VALIGN="TOP" 781> </TD 782></TR 783><TR 784><TD 785WIDTH="20%" 786ALIGN="RIGHT" 787VALIGN="TOP" 788><TT 789CLASS="PARAMETER" 790><I 791>state</I 792></TT 793> :</TD 794><TD 795WIDTH="80%" 796ALIGN="LEFT" 797VALIGN="TOP" 798> </TD 799></TR 800><TR 801><TD 802WIDTH="20%" 803ALIGN="RIGHT" 804VALIGN="TOP" 805><SPAN 806CLASS="emphasis" 807><I 808CLASS="EMPHASIS" 809>Returns</I 810></SPAN 811> :</TD 812><TD 813WIDTH="80%" 814ALIGN="LEFT" 815VALIGN="TOP" 816> </TD 817></TR 818></TBODY 819></TABLE 820><P 821></P 822></DIV 823></DIV 824><HR><DIV 825CLASS="REFSECT2" 826><A 827NAME="AEN30079" 828></A 829><H3 830><A 831NAME="XMLAUTOMATANEWSTATE" 832></A 833>xmlAutomataNewState ()</H3 834><TABLE 835BORDER="0" 836BGCOLOR="#D6E8FF" 837WIDTH="100%" 838CELLPADDING="6" 839><TR 840><TD 841><PRE 842CLASS="PROGRAMLISTING" 843><A 844HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 845>xmlAutomataStatePtr</A 846> xmlAutomataNewState (<A 847HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 848>xmlAutomataPtr</A 849> am);</PRE 850></TD 851></TR 852></TABLE 853><P 854>Create a new disconnected state in the automata</P 855><P 856></P 857><DIV 858CLASS="INFORMALTABLE" 859><A 860NAME="AEN30087" 861></A 862><P 863></P 864><TABLE 865BORDER="0" 866WIDTH="100%" 867BGCOLOR="#FFD0D0" 868CELLSPACING="0" 869CELLPADDING="4" 870CLASS="CALSTABLE" 871><TBODY 872><TR 873><TD 874WIDTH="20%" 875ALIGN="RIGHT" 876VALIGN="TOP" 877><TT 878CLASS="PARAMETER" 879><I 880>am</I 881></TT 882> :</TD 883><TD 884WIDTH="80%" 885ALIGN="LEFT" 886VALIGN="TOP" 887> </TD 888></TR 889><TR 890><TD 891WIDTH="20%" 892ALIGN="RIGHT" 893VALIGN="TOP" 894><SPAN 895CLASS="emphasis" 896><I 897CLASS="EMPHASIS" 898>Returns</I 899></SPAN 900> :</TD 901><TD 902WIDTH="80%" 903ALIGN="LEFT" 904VALIGN="TOP" 905> </TD 906></TR 907></TBODY 908></TABLE 909><P 910></P 911></DIV 912></DIV 913><HR><DIV 914CLASS="REFSECT2" 915><A 916NAME="AEN30100" 917></A 918><H3 919><A 920NAME="XMLAUTOMATANEWTRANSITION" 921></A 922>xmlAutomataNewTransition ()</H3 923><TABLE 924BORDER="0" 925BGCOLOR="#D6E8FF" 926WIDTH="100%" 927CELLPADDING="6" 928><TR 929><TD 930><PRE 931CLASS="PROGRAMLISTING" 932><A 933HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 934>xmlAutomataStatePtr</A 935> xmlAutomataNewTransition 936 (<A 937HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 938>xmlAutomataPtr</A 939> am, 940 <A 941HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 942>xmlAutomataStatePtr</A 943> from, 944 <A 945HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 946>xmlAutomataStatePtr</A 947> to, 948 const <A 949HREF="libxml-tree.html#XMLCHAR" 950>xmlChar</A 951> *token, 952 void *data);</PRE 953></TD 954></TR 955></TABLE 956><P 957>If <TT 958CLASS="PARAMETER" 959><I 960>to</I 961></TT 962> is NULL, this create first a new target state in the automata 963and then adds a transition from the <TT 964CLASS="PARAMETER" 965><I 966>from</I 967></TT 968> state to the target state 969activated by the value of <TT 970CLASS="PARAMETER" 971><I 972>token</I 973></TT 974></P 975><P 976></P 977><DIV 978CLASS="INFORMALTABLE" 979><A 980NAME="AEN30114" 981></A 982><P 983></P 984><TABLE 985BORDER="0" 986WIDTH="100%" 987BGCOLOR="#FFD0D0" 988CELLSPACING="0" 989CELLPADDING="4" 990CLASS="CALSTABLE" 991><TBODY 992><TR 993><TD 994WIDTH="20%" 995ALIGN="RIGHT" 996VALIGN="TOP" 997><TT 998CLASS="PARAMETER" 999><I 1000>am</I 1001></TT 1002> :</TD 1003><TD 1004WIDTH="80%" 1005ALIGN="LEFT" 1006VALIGN="TOP" 1007> </TD 1008></TR 1009><TR 1010><TD 1011WIDTH="20%" 1012ALIGN="RIGHT" 1013VALIGN="TOP" 1014><TT 1015CLASS="PARAMETER" 1016><I 1017>from</I 1018></TT 1019> :</TD 1020><TD 1021WIDTH="80%" 1022ALIGN="LEFT" 1023VALIGN="TOP" 1024> </TD 1025></TR 1026><TR 1027><TD 1028WIDTH="20%" 1029ALIGN="RIGHT" 1030VALIGN="TOP" 1031><TT 1032CLASS="PARAMETER" 1033><I 1034>to</I 1035></TT 1036> :</TD 1037><TD 1038WIDTH="80%" 1039ALIGN="LEFT" 1040VALIGN="TOP" 1041> </TD 1042></TR 1043><TR 1044><TD 1045WIDTH="20%" 1046ALIGN="RIGHT" 1047VALIGN="TOP" 1048><TT 1049CLASS="PARAMETER" 1050><I 1051>token</I 1052></TT 1053> :</TD 1054><TD 1055WIDTH="80%" 1056ALIGN="LEFT" 1057VALIGN="TOP" 1058> </TD 1059></TR 1060><TR 1061><TD 1062WIDTH="20%" 1063ALIGN="RIGHT" 1064VALIGN="TOP" 1065><TT 1066CLASS="PARAMETER" 1067><I 1068>data</I 1069></TT 1070> :</TD 1071><TD 1072WIDTH="80%" 1073ALIGN="LEFT" 1074VALIGN="TOP" 1075> </TD 1076></TR 1077><TR 1078><TD 1079WIDTH="20%" 1080ALIGN="RIGHT" 1081VALIGN="TOP" 1082><SPAN 1083CLASS="emphasis" 1084><I 1085CLASS="EMPHASIS" 1086>Returns</I 1087></SPAN 1088> :</TD 1089><TD 1090WIDTH="80%" 1091ALIGN="LEFT" 1092VALIGN="TOP" 1093> </TD 1094></TR 1095></TBODY 1096></TABLE 1097><P 1098></P 1099></DIV 1100></DIV 1101><HR><DIV 1102CLASS="REFSECT2" 1103><A 1104NAME="AEN30143" 1105></A 1106><H3 1107><A 1108NAME="XMLAUTOMATANEWCOUNTTRANS" 1109></A 1110>xmlAutomataNewCountTrans ()</H3 1111><TABLE 1112BORDER="0" 1113BGCOLOR="#D6E8FF" 1114WIDTH="100%" 1115CELLPADDING="6" 1116><TR 1117><TD 1118><PRE 1119CLASS="PROGRAMLISTING" 1120><A 1121HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1122>xmlAutomataStatePtr</A 1123> xmlAutomataNewCountTrans 1124 (<A 1125HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 1126>xmlAutomataPtr</A 1127> am, 1128 <A 1129HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1130>xmlAutomataStatePtr</A 1131> from, 1132 <A 1133HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1134>xmlAutomataStatePtr</A 1135> to, 1136 const <A 1137HREF="libxml-tree.html#XMLCHAR" 1138>xmlChar</A 1139> *token, 1140 int min, 1141 int max, 1142 void *data);</PRE 1143></TD 1144></TR 1145></TABLE 1146><P 1147>If <TT 1148CLASS="PARAMETER" 1149><I 1150>to</I 1151></TT 1152> is NULL, this create first a new target state in the automata 1153and then adds a transition from the <TT 1154CLASS="PARAMETER" 1155><I 1156>from</I 1157></TT 1158> state to the target state 1159activated by a succession of input of value <TT 1160CLASS="PARAMETER" 1161><I 1162>token</I 1163></TT 1164> and whose number 1165is between <TT 1166CLASS="PARAMETER" 1167><I 1168>min</I 1169></TT 1170> and <TT 1171CLASS="PARAMETER" 1172><I 1173>max</I 1174></TT 1175></P 1176><P 1177></P 1178><DIV 1179CLASS="INFORMALTABLE" 1180><A 1181NAME="AEN30159" 1182></A 1183><P 1184></P 1185><TABLE 1186BORDER="0" 1187WIDTH="100%" 1188BGCOLOR="#FFD0D0" 1189CELLSPACING="0" 1190CELLPADDING="4" 1191CLASS="CALSTABLE" 1192><TBODY 1193><TR 1194><TD 1195WIDTH="20%" 1196ALIGN="RIGHT" 1197VALIGN="TOP" 1198><TT 1199CLASS="PARAMETER" 1200><I 1201>am</I 1202></TT 1203> :</TD 1204><TD 1205WIDTH="80%" 1206ALIGN="LEFT" 1207VALIGN="TOP" 1208> </TD 1209></TR 1210><TR 1211><TD 1212WIDTH="20%" 1213ALIGN="RIGHT" 1214VALIGN="TOP" 1215><TT 1216CLASS="PARAMETER" 1217><I 1218>from</I 1219></TT 1220> :</TD 1221><TD 1222WIDTH="80%" 1223ALIGN="LEFT" 1224VALIGN="TOP" 1225> </TD 1226></TR 1227><TR 1228><TD 1229WIDTH="20%" 1230ALIGN="RIGHT" 1231VALIGN="TOP" 1232><TT 1233CLASS="PARAMETER" 1234><I 1235>to</I 1236></TT 1237> :</TD 1238><TD 1239WIDTH="80%" 1240ALIGN="LEFT" 1241VALIGN="TOP" 1242> </TD 1243></TR 1244><TR 1245><TD 1246WIDTH="20%" 1247ALIGN="RIGHT" 1248VALIGN="TOP" 1249><TT 1250CLASS="PARAMETER" 1251><I 1252>token</I 1253></TT 1254> :</TD 1255><TD 1256WIDTH="80%" 1257ALIGN="LEFT" 1258VALIGN="TOP" 1259> </TD 1260></TR 1261><TR 1262><TD 1263WIDTH="20%" 1264ALIGN="RIGHT" 1265VALIGN="TOP" 1266><TT 1267CLASS="PARAMETER" 1268><I 1269>min</I 1270></TT 1271> :</TD 1272><TD 1273WIDTH="80%" 1274ALIGN="LEFT" 1275VALIGN="TOP" 1276> </TD 1277></TR 1278><TR 1279><TD 1280WIDTH="20%" 1281ALIGN="RIGHT" 1282VALIGN="TOP" 1283><TT 1284CLASS="PARAMETER" 1285><I 1286>max</I 1287></TT 1288> :</TD 1289><TD 1290WIDTH="80%" 1291ALIGN="LEFT" 1292VALIGN="TOP" 1293> </TD 1294></TR 1295><TR 1296><TD 1297WIDTH="20%" 1298ALIGN="RIGHT" 1299VALIGN="TOP" 1300><TT 1301CLASS="PARAMETER" 1302><I 1303>data</I 1304></TT 1305> :</TD 1306><TD 1307WIDTH="80%" 1308ALIGN="LEFT" 1309VALIGN="TOP" 1310> </TD 1311></TR 1312><TR 1313><TD 1314WIDTH="20%" 1315ALIGN="RIGHT" 1316VALIGN="TOP" 1317><SPAN 1318CLASS="emphasis" 1319><I 1320CLASS="EMPHASIS" 1321>Returns</I 1322></SPAN 1323> :</TD 1324><TD 1325WIDTH="80%" 1326ALIGN="LEFT" 1327VALIGN="TOP" 1328> </TD 1329></TR 1330></TBODY 1331></TABLE 1332><P 1333></P 1334></DIV 1335></DIV 1336><HR><DIV 1337CLASS="REFSECT2" 1338><A 1339NAME="AEN30196" 1340></A 1341><H3 1342><A 1343NAME="XMLAUTOMATANEWONCETRANS" 1344></A 1345>xmlAutomataNewOnceTrans ()</H3 1346><TABLE 1347BORDER="0" 1348BGCOLOR="#D6E8FF" 1349WIDTH="100%" 1350CELLPADDING="6" 1351><TR 1352><TD 1353><PRE 1354CLASS="PROGRAMLISTING" 1355><A 1356HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1357>xmlAutomataStatePtr</A 1358> xmlAutomataNewOnceTrans (<A 1359HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 1360>xmlAutomataPtr</A 1361> am, 1362 <A 1363HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1364>xmlAutomataStatePtr</A 1365> from, 1366 <A 1367HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1368>xmlAutomataStatePtr</A 1369> to, 1370 const <A 1371HREF="libxml-tree.html#XMLCHAR" 1372>xmlChar</A 1373> *token, 1374 int min, 1375 int max, 1376 void *data);</PRE 1377></TD 1378></TR 1379></TABLE 1380><P 1381>If <TT 1382CLASS="PARAMETER" 1383><I 1384>to</I 1385></TT 1386> is NULL, this create first a new target state in the automata 1387and then adds a transition from the <TT 1388CLASS="PARAMETER" 1389><I 1390>from</I 1391></TT 1392> state to the target state 1393activated by a succession of input of value <TT 1394CLASS="PARAMETER" 1395><I 1396>token</I 1397></TT 1398> and whose number 1399is between <TT 1400CLASS="PARAMETER" 1401><I 1402>min</I 1403></TT 1404> and <TT 1405CLASS="PARAMETER" 1406><I 1407>max</I 1408></TT 1409>, moreover that transistion can only be crossed 1410once.</P 1411><P 1412></P 1413><DIV 1414CLASS="INFORMALTABLE" 1415><A 1416NAME="AEN30212" 1417></A 1418><P 1419></P 1420><TABLE 1421BORDER="0" 1422WIDTH="100%" 1423BGCOLOR="#FFD0D0" 1424CELLSPACING="0" 1425CELLPADDING="4" 1426CLASS="CALSTABLE" 1427><TBODY 1428><TR 1429><TD 1430WIDTH="20%" 1431ALIGN="RIGHT" 1432VALIGN="TOP" 1433><TT 1434CLASS="PARAMETER" 1435><I 1436>am</I 1437></TT 1438> :</TD 1439><TD 1440WIDTH="80%" 1441ALIGN="LEFT" 1442VALIGN="TOP" 1443> </TD 1444></TR 1445><TR 1446><TD 1447WIDTH="20%" 1448ALIGN="RIGHT" 1449VALIGN="TOP" 1450><TT 1451CLASS="PARAMETER" 1452><I 1453>from</I 1454></TT 1455> :</TD 1456><TD 1457WIDTH="80%" 1458ALIGN="LEFT" 1459VALIGN="TOP" 1460> </TD 1461></TR 1462><TR 1463><TD 1464WIDTH="20%" 1465ALIGN="RIGHT" 1466VALIGN="TOP" 1467><TT 1468CLASS="PARAMETER" 1469><I 1470>to</I 1471></TT 1472> :</TD 1473><TD 1474WIDTH="80%" 1475ALIGN="LEFT" 1476VALIGN="TOP" 1477> </TD 1478></TR 1479><TR 1480><TD 1481WIDTH="20%" 1482ALIGN="RIGHT" 1483VALIGN="TOP" 1484><TT 1485CLASS="PARAMETER" 1486><I 1487>token</I 1488></TT 1489> :</TD 1490><TD 1491WIDTH="80%" 1492ALIGN="LEFT" 1493VALIGN="TOP" 1494> </TD 1495></TR 1496><TR 1497><TD 1498WIDTH="20%" 1499ALIGN="RIGHT" 1500VALIGN="TOP" 1501><TT 1502CLASS="PARAMETER" 1503><I 1504>min</I 1505></TT 1506> :</TD 1507><TD 1508WIDTH="80%" 1509ALIGN="LEFT" 1510VALIGN="TOP" 1511> </TD 1512></TR 1513><TR 1514><TD 1515WIDTH="20%" 1516ALIGN="RIGHT" 1517VALIGN="TOP" 1518><TT 1519CLASS="PARAMETER" 1520><I 1521>max</I 1522></TT 1523> :</TD 1524><TD 1525WIDTH="80%" 1526ALIGN="LEFT" 1527VALIGN="TOP" 1528> </TD 1529></TR 1530><TR 1531><TD 1532WIDTH="20%" 1533ALIGN="RIGHT" 1534VALIGN="TOP" 1535><TT 1536CLASS="PARAMETER" 1537><I 1538>data</I 1539></TT 1540> :</TD 1541><TD 1542WIDTH="80%" 1543ALIGN="LEFT" 1544VALIGN="TOP" 1545> </TD 1546></TR 1547><TR 1548><TD 1549WIDTH="20%" 1550ALIGN="RIGHT" 1551VALIGN="TOP" 1552><SPAN 1553CLASS="emphasis" 1554><I 1555CLASS="EMPHASIS" 1556>Returns</I 1557></SPAN 1558> :</TD 1559><TD 1560WIDTH="80%" 1561ALIGN="LEFT" 1562VALIGN="TOP" 1563> </TD 1564></TR 1565></TBODY 1566></TABLE 1567><P 1568></P 1569></DIV 1570></DIV 1571><HR><DIV 1572CLASS="REFSECT2" 1573><A 1574NAME="AEN30249" 1575></A 1576><H3 1577><A 1578NAME="XMLAUTOMATANEWALLTRANS" 1579></A 1580>xmlAutomataNewAllTrans ()</H3 1581><TABLE 1582BORDER="0" 1583BGCOLOR="#D6E8FF" 1584WIDTH="100%" 1585CELLPADDING="6" 1586><TR 1587><TD 1588><PRE 1589CLASS="PROGRAMLISTING" 1590><A 1591HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1592>xmlAutomataStatePtr</A 1593> xmlAutomataNewAllTrans (<A 1594HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 1595>xmlAutomataPtr</A 1596> am, 1597 <A 1598HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1599>xmlAutomataStatePtr</A 1600> from, 1601 <A 1602HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1603>xmlAutomataStatePtr</A 1604> to, 1605 int lax);</PRE 1606></TD 1607></TR 1608></TABLE 1609><P 1610>If <TT 1611CLASS="PARAMETER" 1612><I 1613>to</I 1614></TT 1615> is NULL, this create first a new target state in the automata 1616and then adds a an ALL transition from the <TT 1617CLASS="PARAMETER" 1618><I 1619>from</I 1620></TT 1621> state to the 1622target state. That transition is an epsilon transition allowed only when 1623all transitions from the <TT 1624CLASS="PARAMETER" 1625><I 1626>from</I 1627></TT 1628> node have been activated.</P 1629><P 1630></P 1631><DIV 1632CLASS="INFORMALTABLE" 1633><A 1634NAME="AEN30262" 1635></A 1636><P 1637></P 1638><TABLE 1639BORDER="0" 1640WIDTH="100%" 1641BGCOLOR="#FFD0D0" 1642CELLSPACING="0" 1643CELLPADDING="4" 1644CLASS="CALSTABLE" 1645><TBODY 1646><TR 1647><TD 1648WIDTH="20%" 1649ALIGN="RIGHT" 1650VALIGN="TOP" 1651><TT 1652CLASS="PARAMETER" 1653><I 1654>am</I 1655></TT 1656> :</TD 1657><TD 1658WIDTH="80%" 1659ALIGN="LEFT" 1660VALIGN="TOP" 1661> </TD 1662></TR 1663><TR 1664><TD 1665WIDTH="20%" 1666ALIGN="RIGHT" 1667VALIGN="TOP" 1668><TT 1669CLASS="PARAMETER" 1670><I 1671>from</I 1672></TT 1673> :</TD 1674><TD 1675WIDTH="80%" 1676ALIGN="LEFT" 1677VALIGN="TOP" 1678> </TD 1679></TR 1680><TR 1681><TD 1682WIDTH="20%" 1683ALIGN="RIGHT" 1684VALIGN="TOP" 1685><TT 1686CLASS="PARAMETER" 1687><I 1688>to</I 1689></TT 1690> :</TD 1691><TD 1692WIDTH="80%" 1693ALIGN="LEFT" 1694VALIGN="TOP" 1695> </TD 1696></TR 1697><TR 1698><TD 1699WIDTH="20%" 1700ALIGN="RIGHT" 1701VALIGN="TOP" 1702><TT 1703CLASS="PARAMETER" 1704><I 1705>lax</I 1706></TT 1707> :</TD 1708><TD 1709WIDTH="80%" 1710ALIGN="LEFT" 1711VALIGN="TOP" 1712> </TD 1713></TR 1714><TR 1715><TD 1716WIDTH="20%" 1717ALIGN="RIGHT" 1718VALIGN="TOP" 1719><SPAN 1720CLASS="emphasis" 1721><I 1722CLASS="EMPHASIS" 1723>Returns</I 1724></SPAN 1725> :</TD 1726><TD 1727WIDTH="80%" 1728ALIGN="LEFT" 1729VALIGN="TOP" 1730> </TD 1731></TR 1732></TBODY 1733></TABLE 1734><P 1735></P 1736></DIV 1737></DIV 1738><HR><DIV 1739CLASS="REFSECT2" 1740><A 1741NAME="AEN30287" 1742></A 1743><H3 1744><A 1745NAME="XMLAUTOMATANEWEPSILON" 1746></A 1747>xmlAutomataNewEpsilon ()</H3 1748><TABLE 1749BORDER="0" 1750BGCOLOR="#D6E8FF" 1751WIDTH="100%" 1752CELLPADDING="6" 1753><TR 1754><TD 1755><PRE 1756CLASS="PROGRAMLISTING" 1757><A 1758HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1759>xmlAutomataStatePtr</A 1760> xmlAutomataNewEpsilon (<A 1761HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 1762>xmlAutomataPtr</A 1763> am, 1764 <A 1765HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1766>xmlAutomataStatePtr</A 1767> from, 1768 <A 1769HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1770>xmlAutomataStatePtr</A 1771> to);</PRE 1772></TD 1773></TR 1774></TABLE 1775><P 1776>If <TT 1777CLASS="PARAMETER" 1778><I 1779>to</I 1780></TT 1781> is NULL, this create first a new target state in the automata 1782and then adds a an epsilon transition from the <TT 1783CLASS="PARAMETER" 1784><I 1785>from</I 1786></TT 1787> state to the 1788target state</P 1789><P 1790></P 1791><DIV 1792CLASS="INFORMALTABLE" 1793><A 1794NAME="AEN30299" 1795></A 1796><P 1797></P 1798><TABLE 1799BORDER="0" 1800WIDTH="100%" 1801BGCOLOR="#FFD0D0" 1802CELLSPACING="0" 1803CELLPADDING="4" 1804CLASS="CALSTABLE" 1805><TBODY 1806><TR 1807><TD 1808WIDTH="20%" 1809ALIGN="RIGHT" 1810VALIGN="TOP" 1811><TT 1812CLASS="PARAMETER" 1813><I 1814>am</I 1815></TT 1816> :</TD 1817><TD 1818WIDTH="80%" 1819ALIGN="LEFT" 1820VALIGN="TOP" 1821> </TD 1822></TR 1823><TR 1824><TD 1825WIDTH="20%" 1826ALIGN="RIGHT" 1827VALIGN="TOP" 1828><TT 1829CLASS="PARAMETER" 1830><I 1831>from</I 1832></TT 1833> :</TD 1834><TD 1835WIDTH="80%" 1836ALIGN="LEFT" 1837VALIGN="TOP" 1838> </TD 1839></TR 1840><TR 1841><TD 1842WIDTH="20%" 1843ALIGN="RIGHT" 1844VALIGN="TOP" 1845><TT 1846CLASS="PARAMETER" 1847><I 1848>to</I 1849></TT 1850> :</TD 1851><TD 1852WIDTH="80%" 1853ALIGN="LEFT" 1854VALIGN="TOP" 1855> </TD 1856></TR 1857><TR 1858><TD 1859WIDTH="20%" 1860ALIGN="RIGHT" 1861VALIGN="TOP" 1862><SPAN 1863CLASS="emphasis" 1864><I 1865CLASS="EMPHASIS" 1866>Returns</I 1867></SPAN 1868> :</TD 1869><TD 1870WIDTH="80%" 1871ALIGN="LEFT" 1872VALIGN="TOP" 1873> </TD 1874></TR 1875></TBODY 1876></TABLE 1877><P 1878></P 1879></DIV 1880></DIV 1881><HR><DIV 1882CLASS="REFSECT2" 1883><A 1884NAME="AEN30320" 1885></A 1886><H3 1887><A 1888NAME="XMLAUTOMATANEWCOUNTEDTRANS" 1889></A 1890>xmlAutomataNewCountedTrans ()</H3 1891><TABLE 1892BORDER="0" 1893BGCOLOR="#D6E8FF" 1894WIDTH="100%" 1895CELLPADDING="6" 1896><TR 1897><TD 1898><PRE 1899CLASS="PROGRAMLISTING" 1900><A 1901HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1902>xmlAutomataStatePtr</A 1903> xmlAutomataNewCountedTrans 1904 (<A 1905HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 1906>xmlAutomataPtr</A 1907> am, 1908 <A 1909HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1910>xmlAutomataStatePtr</A 1911> from, 1912 <A 1913HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 1914>xmlAutomataStatePtr</A 1915> to, 1916 int counter);</PRE 1917></TD 1918></TR 1919></TABLE 1920><P 1921>If <TT 1922CLASS="PARAMETER" 1923><I 1924>to</I 1925></TT 1926> is NULL, this create first a new target state in the automata 1927and then adds an epsilon transition from the <TT 1928CLASS="PARAMETER" 1929><I 1930>from</I 1931></TT 1932> state to the target state 1933which will increment the counter provided</P 1934><P 1935></P 1936><DIV 1937CLASS="INFORMALTABLE" 1938><A 1939NAME="AEN30332" 1940></A 1941><P 1942></P 1943><TABLE 1944BORDER="0" 1945WIDTH="100%" 1946BGCOLOR="#FFD0D0" 1947CELLSPACING="0" 1948CELLPADDING="4" 1949CLASS="CALSTABLE" 1950><TBODY 1951><TR 1952><TD 1953WIDTH="20%" 1954ALIGN="RIGHT" 1955VALIGN="TOP" 1956><TT 1957CLASS="PARAMETER" 1958><I 1959>am</I 1960></TT 1961> :</TD 1962><TD 1963WIDTH="80%" 1964ALIGN="LEFT" 1965VALIGN="TOP" 1966> </TD 1967></TR 1968><TR 1969><TD 1970WIDTH="20%" 1971ALIGN="RIGHT" 1972VALIGN="TOP" 1973><TT 1974CLASS="PARAMETER" 1975><I 1976>from</I 1977></TT 1978> :</TD 1979><TD 1980WIDTH="80%" 1981ALIGN="LEFT" 1982VALIGN="TOP" 1983> </TD 1984></TR 1985><TR 1986><TD 1987WIDTH="20%" 1988ALIGN="RIGHT" 1989VALIGN="TOP" 1990><TT 1991CLASS="PARAMETER" 1992><I 1993>to</I 1994></TT 1995> :</TD 1996><TD 1997WIDTH="80%" 1998ALIGN="LEFT" 1999VALIGN="TOP" 2000> </TD 2001></TR 2002><TR 2003><TD 2004WIDTH="20%" 2005ALIGN="RIGHT" 2006VALIGN="TOP" 2007><TT 2008CLASS="PARAMETER" 2009><I 2010>counter</I 2011></TT 2012> :</TD 2013><TD 2014WIDTH="80%" 2015ALIGN="LEFT" 2016VALIGN="TOP" 2017> </TD 2018></TR 2019><TR 2020><TD 2021WIDTH="20%" 2022ALIGN="RIGHT" 2023VALIGN="TOP" 2024><SPAN 2025CLASS="emphasis" 2026><I 2027CLASS="EMPHASIS" 2028>Returns</I 2029></SPAN 2030> :</TD 2031><TD 2032WIDTH="80%" 2033ALIGN="LEFT" 2034VALIGN="TOP" 2035> </TD 2036></TR 2037></TBODY 2038></TABLE 2039><P 2040></P 2041></DIV 2042></DIV 2043><HR><DIV 2044CLASS="REFSECT2" 2045><A 2046NAME="AEN30357" 2047></A 2048><H3 2049><A 2050NAME="XMLAUTOMATANEWCOUNTERTRANS" 2051></A 2052>xmlAutomataNewCounterTrans ()</H3 2053><TABLE 2054BORDER="0" 2055BGCOLOR="#D6E8FF" 2056WIDTH="100%" 2057CELLPADDING="6" 2058><TR 2059><TD 2060><PRE 2061CLASS="PROGRAMLISTING" 2062><A 2063HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 2064>xmlAutomataStatePtr</A 2065> xmlAutomataNewCounterTrans 2066 (<A 2067HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 2068>xmlAutomataPtr</A 2069> am, 2070 <A 2071HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 2072>xmlAutomataStatePtr</A 2073> from, 2074 <A 2075HREF="libxml-xmlautomata.html#XMLAUTOMATASTATEPTR" 2076>xmlAutomataStatePtr</A 2077> to, 2078 int counter);</PRE 2079></TD 2080></TR 2081></TABLE 2082><P 2083>If <TT 2084CLASS="PARAMETER" 2085><I 2086>to</I 2087></TT 2088> is NULL, this create first a new target state in the automata 2089and then adds an epsilon transition from the <TT 2090CLASS="PARAMETER" 2091><I 2092>from</I 2093></TT 2094> state to the target state 2095which will be allowed only if the counter is within the right range.</P 2096><P 2097></P 2098><DIV 2099CLASS="INFORMALTABLE" 2100><A 2101NAME="AEN30369" 2102></A 2103><P 2104></P 2105><TABLE 2106BORDER="0" 2107WIDTH="100%" 2108BGCOLOR="#FFD0D0" 2109CELLSPACING="0" 2110CELLPADDING="4" 2111CLASS="CALSTABLE" 2112><TBODY 2113><TR 2114><TD 2115WIDTH="20%" 2116ALIGN="RIGHT" 2117VALIGN="TOP" 2118><TT 2119CLASS="PARAMETER" 2120><I 2121>am</I 2122></TT 2123> :</TD 2124><TD 2125WIDTH="80%" 2126ALIGN="LEFT" 2127VALIGN="TOP" 2128> </TD 2129></TR 2130><TR 2131><TD 2132WIDTH="20%" 2133ALIGN="RIGHT" 2134VALIGN="TOP" 2135><TT 2136CLASS="PARAMETER" 2137><I 2138>from</I 2139></TT 2140> :</TD 2141><TD 2142WIDTH="80%" 2143ALIGN="LEFT" 2144VALIGN="TOP" 2145> </TD 2146></TR 2147><TR 2148><TD 2149WIDTH="20%" 2150ALIGN="RIGHT" 2151VALIGN="TOP" 2152><TT 2153CLASS="PARAMETER" 2154><I 2155>to</I 2156></TT 2157> :</TD 2158><TD 2159WIDTH="80%" 2160ALIGN="LEFT" 2161VALIGN="TOP" 2162> </TD 2163></TR 2164><TR 2165><TD 2166WIDTH="20%" 2167ALIGN="RIGHT" 2168VALIGN="TOP" 2169><TT 2170CLASS="PARAMETER" 2171><I 2172>counter</I 2173></TT 2174> :</TD 2175><TD 2176WIDTH="80%" 2177ALIGN="LEFT" 2178VALIGN="TOP" 2179> </TD 2180></TR 2181><TR 2182><TD 2183WIDTH="20%" 2184ALIGN="RIGHT" 2185VALIGN="TOP" 2186><SPAN 2187CLASS="emphasis" 2188><I 2189CLASS="EMPHASIS" 2190>Returns</I 2191></SPAN 2192> :</TD 2193><TD 2194WIDTH="80%" 2195ALIGN="LEFT" 2196VALIGN="TOP" 2197> </TD 2198></TR 2199></TBODY 2200></TABLE 2201><P 2202></P 2203></DIV 2204></DIV 2205><HR><DIV 2206CLASS="REFSECT2" 2207><A 2208NAME="AEN30394" 2209></A 2210><H3 2211><A 2212NAME="XMLAUTOMATANEWCOUNTER" 2213></A 2214>xmlAutomataNewCounter ()</H3 2215><TABLE 2216BORDER="0" 2217BGCOLOR="#D6E8FF" 2218WIDTH="100%" 2219CELLPADDING="6" 2220><TR 2221><TD 2222><PRE 2223CLASS="PROGRAMLISTING" 2224>int xmlAutomataNewCounter (<A 2225HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 2226>xmlAutomataPtr</A 2227> am, 2228 int min, 2229 int max);</PRE 2230></TD 2231></TR 2232></TABLE 2233><P 2234>Create a new counter</P 2235><P 2236></P 2237><DIV 2238CLASS="INFORMALTABLE" 2239><A 2240NAME="AEN30401" 2241></A 2242><P 2243></P 2244><TABLE 2245BORDER="0" 2246WIDTH="100%" 2247BGCOLOR="#FFD0D0" 2248CELLSPACING="0" 2249CELLPADDING="4" 2250CLASS="CALSTABLE" 2251><TBODY 2252><TR 2253><TD 2254WIDTH="20%" 2255ALIGN="RIGHT" 2256VALIGN="TOP" 2257><TT 2258CLASS="PARAMETER" 2259><I 2260>am</I 2261></TT 2262> :</TD 2263><TD 2264WIDTH="80%" 2265ALIGN="LEFT" 2266VALIGN="TOP" 2267> </TD 2268></TR 2269><TR 2270><TD 2271WIDTH="20%" 2272ALIGN="RIGHT" 2273VALIGN="TOP" 2274><TT 2275CLASS="PARAMETER" 2276><I 2277>min</I 2278></TT 2279> :</TD 2280><TD 2281WIDTH="80%" 2282ALIGN="LEFT" 2283VALIGN="TOP" 2284> </TD 2285></TR 2286><TR 2287><TD 2288WIDTH="20%" 2289ALIGN="RIGHT" 2290VALIGN="TOP" 2291><TT 2292CLASS="PARAMETER" 2293><I 2294>max</I 2295></TT 2296> :</TD 2297><TD 2298WIDTH="80%" 2299ALIGN="LEFT" 2300VALIGN="TOP" 2301> </TD 2302></TR 2303><TR 2304><TD 2305WIDTH="20%" 2306ALIGN="RIGHT" 2307VALIGN="TOP" 2308><SPAN 2309CLASS="emphasis" 2310><I 2311CLASS="EMPHASIS" 2312>Returns</I 2313></SPAN 2314> :</TD 2315><TD 2316WIDTH="80%" 2317ALIGN="LEFT" 2318VALIGN="TOP" 2319> </TD 2320></TR 2321></TBODY 2322></TABLE 2323><P 2324></P 2325></DIV 2326></DIV 2327><HR><DIV 2328CLASS="REFSECT2" 2329><A 2330NAME="AEN30422" 2331></A 2332><H3 2333><A 2334NAME="XMLAUTOMATACOMPILE" 2335></A 2336>xmlAutomataCompile ()</H3 2337><TABLE 2338BORDER="0" 2339BGCOLOR="#D6E8FF" 2340WIDTH="100%" 2341CELLPADDING="6" 2342><TR 2343><TD 2344><PRE 2345CLASS="PROGRAMLISTING" 2346><A 2347HREF="libxml-xmlregexp.html#XMLREGEXPPTR" 2348>xmlRegexpPtr</A 2349> xmlAutomataCompile (<A 2350HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 2351>xmlAutomataPtr</A 2352> am);</PRE 2353></TD 2354></TR 2355></TABLE 2356><P 2357>Compile the automata into a Reg Exp ready for being executed. 2358The automata should be free after this point.</P 2359><P 2360></P 2361><DIV 2362CLASS="INFORMALTABLE" 2363><A 2364NAME="AEN30430" 2365></A 2366><P 2367></P 2368><TABLE 2369BORDER="0" 2370WIDTH="100%" 2371BGCOLOR="#FFD0D0" 2372CELLSPACING="0" 2373CELLPADDING="4" 2374CLASS="CALSTABLE" 2375><TBODY 2376><TR 2377><TD 2378WIDTH="20%" 2379ALIGN="RIGHT" 2380VALIGN="TOP" 2381><TT 2382CLASS="PARAMETER" 2383><I 2384>am</I 2385></TT 2386> :</TD 2387><TD 2388WIDTH="80%" 2389ALIGN="LEFT" 2390VALIGN="TOP" 2391> </TD 2392></TR 2393><TR 2394><TD 2395WIDTH="20%" 2396ALIGN="RIGHT" 2397VALIGN="TOP" 2398><SPAN 2399CLASS="emphasis" 2400><I 2401CLASS="EMPHASIS" 2402>Returns</I 2403></SPAN 2404> :</TD 2405><TD 2406WIDTH="80%" 2407ALIGN="LEFT" 2408VALIGN="TOP" 2409> </TD 2410></TR 2411></TBODY 2412></TABLE 2413><P 2414></P 2415></DIV 2416></DIV 2417><HR><DIV 2418CLASS="REFSECT2" 2419><A 2420NAME="AEN30443" 2421></A 2422><H3 2423><A 2424NAME="XMLAUTOMATAISDETERMINIST" 2425></A 2426>xmlAutomataIsDeterminist ()</H3 2427><TABLE 2428BORDER="0" 2429BGCOLOR="#D6E8FF" 2430WIDTH="100%" 2431CELLPADDING="6" 2432><TR 2433><TD 2434><PRE 2435CLASS="PROGRAMLISTING" 2436>int xmlAutomataIsDeterminist (<A 2437HREF="libxml-xmlautomata.html#XMLAUTOMATAPTR" 2438>xmlAutomataPtr</A 2439> am);</PRE 2440></TD 2441></TR 2442></TABLE 2443><P 2444>Checks if an automata is determinist.</P 2445><P 2446></P 2447><DIV 2448CLASS="INFORMALTABLE" 2449><A 2450NAME="AEN30450" 2451></A 2452><P 2453></P 2454><TABLE 2455BORDER="0" 2456WIDTH="100%" 2457BGCOLOR="#FFD0D0" 2458CELLSPACING="0" 2459CELLPADDING="4" 2460CLASS="CALSTABLE" 2461><TBODY 2462><TR 2463><TD 2464WIDTH="20%" 2465ALIGN="RIGHT" 2466VALIGN="TOP" 2467><TT 2468CLASS="PARAMETER" 2469><I 2470>am</I 2471></TT 2472> :</TD 2473><TD 2474WIDTH="80%" 2475ALIGN="LEFT" 2476VALIGN="TOP" 2477> </TD 2478></TR 2479><TR 2480><TD 2481WIDTH="20%" 2482ALIGN="RIGHT" 2483VALIGN="TOP" 2484><SPAN 2485CLASS="emphasis" 2486><I 2487CLASS="EMPHASIS" 2488>Returns</I 2489></SPAN 2490> :</TD 2491><TD 2492WIDTH="80%" 2493ALIGN="LEFT" 2494VALIGN="TOP" 2495> </TD 2496></TR 2497></TBODY 2498></TABLE 2499><P 2500></P 2501></DIV 2502></DIV 2503></DIV 2504><DIV 2505CLASS="NAVFOOTER" 2506><BR 2507CLEAR="all"><BR><TABLE 2508WIDTH="100%" 2509BORDER="0" 2510BGCOLOR="#000000" 2511CELLPADDING="1" 2512CELLSPACING="0" 2513><TR 2514><TD 2515WIDTH="25%" 2516BGCOLOR="#C00000" 2517ALIGN="left" 2518><A 2519HREF="libxml-xmlregexp.html" 2520><FONT 2521COLOR="#FFFFFF" 2522SIZE="3" 2523><B 2524><<< Previous Page</B 2525></FONT 2526></A 2527></TD 2528><TD 2529WIDTH="25%" 2530BGCOLOR="#0000C0" 2531ALIGN="center" 2532><FONT 2533COLOR="#FFFFFF" 2534SIZE="3" 2535><B 2536><A 2537HREF="book1.html" 2538><FONT 2539COLOR="#FFFFFF" 2540SIZE="3" 2541><B 2542>Home</B 2543></FONT 2544></A 2545></B 2546></FONT 2547></TD 2548><TD 2549WIDTH="25%" 2550BGCOLOR="#00C000" 2551ALIGN="center" 2552><FONT 2553COLOR="#FFFFFF" 2554SIZE="3" 2555><B 2556><A 2557HREF="libxml-lib.html" 2558><FONT 2559COLOR="#FFFFFF" 2560SIZE="3" 2561><B 2562>Up</B 2563></FONT 2564></A 2565></B 2566></FONT 2567></TD 2568><TD 2569WIDTH="25%" 2570BGCOLOR="#C00000" 2571ALIGN="right" 2572><A 2573HREF="libxml-xmlunicode.html" 2574><FONT 2575COLOR="#FFFFFF" 2576SIZE="3" 2577><B 2578>Next Page >>></B 2579></FONT 2580></A 2581></TD 2582></TR 2583><TR 2584><TD 2585COLSPAN="2" 2586ALIGN="left" 2587><FONT 2588COLOR="#FFFFFF" 2589SIZE="3" 2590><B 2591>xmlregexp</B 2592></FONT 2593></TD 2594><TD 2595COLSPAN="2" 2596ALIGN="right" 2597><FONT 2598COLOR="#FFFFFF" 2599SIZE="3" 2600><B 2601>xmlunicode</B 2602></FONT 2603></TD 2604></TR 2605></TABLE 2606></DIV 2607></BODY 2608></HTML 2609>