xref: /aosp_15_r20/external/libxml2/os400/libxmlrpg/xmlautomata.rpgle (revision 7c5688314b92172186c154356a6374bf7684c3ca)
1*7c568831SAndroid Build Coastguard Worker      * Summary: API to build regexp automata
2*7c568831SAndroid Build Coastguard Worker      * Description: the API to build regexp automata
3*7c568831SAndroid Build Coastguard Worker      *
4*7c568831SAndroid Build Coastguard Worker      * Copy: See Copyright for the status of this software.
5*7c568831SAndroid Build Coastguard Worker      *
6*7c568831SAndroid Build Coastguard Worker      * Author: Patrick Monnerat <[email protected]>, DATASPHERE S.A.
7*7c568831SAndroid Build Coastguard Worker
8*7c568831SAndroid Build Coastguard Worker      /if not defined(XML_AUTOMATA_H__)
9*7c568831SAndroid Build Coastguard Worker      /define XML_AUTOMATA_H__
10*7c568831SAndroid Build Coastguard Worker
11*7c568831SAndroid Build Coastguard Worker      /include "libxmlrpg/xmlversion"
12*7c568831SAndroid Build Coastguard Worker
13*7c568831SAndroid Build Coastguard Worker      /if defined(LIBXML_REGEXP_ENABLED)
14*7c568831SAndroid Build Coastguard Worker      /if defined(LIBXML_AUTOMATA_ENABLED)
15*7c568831SAndroid Build Coastguard Worker
16*7c568831SAndroid Build Coastguard Worker      /include "libxmlrpg/xmlTypesC"
17*7c568831SAndroid Build Coastguard Worker      /include "libxmlrpg/tree"
18*7c568831SAndroid Build Coastguard Worker      /include "libxmlrpg/xmlregexp"
19*7c568831SAndroid Build Coastguard Worker
20*7c568831SAndroid Build Coastguard Worker      * xmlAutomataPtr:
21*7c568831SAndroid Build Coastguard Worker      *
22*7c568831SAndroid Build Coastguard Worker      * A libxml automata description, It can be compiled into a regexp
23*7c568831SAndroid Build Coastguard Worker
24*7c568831SAndroid Build Coastguard Worker     d xmlAutomataPtr  s               *   based(######typedef######)
25*7c568831SAndroid Build Coastguard Worker
26*7c568831SAndroid Build Coastguard Worker      * xmlAutomataStatePtr:
27*7c568831SAndroid Build Coastguard Worker      *
28*7c568831SAndroid Build Coastguard Worker      * A state int the automata description,
29*7c568831SAndroid Build Coastguard Worker
30*7c568831SAndroid Build Coastguard Worker     d xmlAutomataStatePtr...
31*7c568831SAndroid Build Coastguard Worker     d                 s               *   based(######typedef######)
32*7c568831SAndroid Build Coastguard Worker
33*7c568831SAndroid Build Coastguard Worker      * Building API
34*7c568831SAndroid Build Coastguard Worker
35*7c568831SAndroid Build Coastguard Worker     d xmlNewAutomata  pr                  extproc('xmlNewAutomata')
36*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataPtr)
37*7c568831SAndroid Build Coastguard Worker
38*7c568831SAndroid Build Coastguard Worker     d xmlFreeAutomata...
39*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlFreeAutomata')
40*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
41*7c568831SAndroid Build Coastguard Worker
42*7c568831SAndroid Build Coastguard Worker     d xmlAutomataGetInitState...
43*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataGetInitState')
44*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
45*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
46*7c568831SAndroid Build Coastguard Worker
47*7c568831SAndroid Build Coastguard Worker     d xmlAutomataSetFinalState...
48*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataSetFinalState')
49*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlCint)
50*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
51*7c568831SAndroid Build Coastguard Worker     d  state                              value like(xmlAutomataStatePtr)
52*7c568831SAndroid Build Coastguard Worker
53*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewState...
54*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewState')
55*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
56*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
57*7c568831SAndroid Build Coastguard Worker
58*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewTransition...
59*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewTransition')
60*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
61*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
62*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
63*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
64*7c568831SAndroid Build Coastguard Worker     d  token                          *   value options(*string)               const xmlChar *
65*7c568831SAndroid Build Coastguard Worker     d  data                           *   value options(*string)               void *
66*7c568831SAndroid Build Coastguard Worker
67*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewTransition2...
68*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewTransition2')
69*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
70*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
71*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
72*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
73*7c568831SAndroid Build Coastguard Worker     d  token                          *   value options(*string)               const xmlChar *
74*7c568831SAndroid Build Coastguard Worker     d  token2                         *   value options(*string)               const xmlChar *
75*7c568831SAndroid Build Coastguard Worker     d  data                           *   value options(*string)               void *
76*7c568831SAndroid Build Coastguard Worker
77*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewNegTrans...
78*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewNegTrans')
79*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
80*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
81*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
82*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
83*7c568831SAndroid Build Coastguard Worker     d  token                          *   value options(*string)               const xmlChar *
84*7c568831SAndroid Build Coastguard Worker     d  token2                         *   value options(*string)               const xmlChar *
85*7c568831SAndroid Build Coastguard Worker     d  data                           *   value options(*string)               void *
86*7c568831SAndroid Build Coastguard Worker
87*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewCountTrans...
88*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewCountTrans')
89*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
90*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
91*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
92*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
93*7c568831SAndroid Build Coastguard Worker     d  token                          *   value options(*string)               const xmlChar *
94*7c568831SAndroid Build Coastguard Worker     d  min                                value like(xmlCint)
95*7c568831SAndroid Build Coastguard Worker     d  max                                value like(xmlCint)
96*7c568831SAndroid Build Coastguard Worker     d  data                           *   value options(*string)               void *
97*7c568831SAndroid Build Coastguard Worker
98*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewCountTrans2...
99*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewCountTrans2')
100*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
101*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
102*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
103*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
104*7c568831SAndroid Build Coastguard Worker     d  token                          *   value options(*string)               const xmlChar *
105*7c568831SAndroid Build Coastguard Worker     d  token2                         *   value options(*string)               const xmlChar *
106*7c568831SAndroid Build Coastguard Worker     d  min                                value like(xmlCint)
107*7c568831SAndroid Build Coastguard Worker     d  max                                value like(xmlCint)
108*7c568831SAndroid Build Coastguard Worker     d  data                           *   value options(*string)               void *
109*7c568831SAndroid Build Coastguard Worker
110*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewOnceTrans...
111*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewOnceTrans')
112*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
113*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
114*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
115*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
116*7c568831SAndroid Build Coastguard Worker     d  token                          *   value options(*string)               const xmlChar *
117*7c568831SAndroid Build Coastguard Worker     d  min                                value like(xmlCint)
118*7c568831SAndroid Build Coastguard Worker     d  max                                value like(xmlCint)
119*7c568831SAndroid Build Coastguard Worker     d  data                           *   value options(*string)               void *
120*7c568831SAndroid Build Coastguard Worker
121*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewOnceTrans2...
122*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewOnceTrans2')
123*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
124*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
125*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
126*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
127*7c568831SAndroid Build Coastguard Worker     d  token                          *   value options(*string)               const xmlChar *
128*7c568831SAndroid Build Coastguard Worker     d  token2                         *   value options(*string)               const xmlChar *
129*7c568831SAndroid Build Coastguard Worker     d  min                                value like(xmlCint)
130*7c568831SAndroid Build Coastguard Worker     d  max                                value like(xmlCint)
131*7c568831SAndroid Build Coastguard Worker     d  data                           *   value options(*string)               void *
132*7c568831SAndroid Build Coastguard Worker
133*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewAllTrans...
134*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewAllTrans')
135*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
136*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
137*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
138*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
139*7c568831SAndroid Build Coastguard Worker     d  lax                                value like(xmlCint)
140*7c568831SAndroid Build Coastguard Worker
141*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewEpsilon...
142*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewEpsilon')
143*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
144*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
145*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
146*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
147*7c568831SAndroid Build Coastguard Worker
148*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewCountedTrans...
149*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewCountedTrans')
150*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
151*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
152*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
153*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
154*7c568831SAndroid Build Coastguard Worker     d  counter                            value like(xmlCint)
155*7c568831SAndroid Build Coastguard Worker
156*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewCounterTrans...
157*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewCounterTrans')
158*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlAutomataStatePtr)
159*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
160*7c568831SAndroid Build Coastguard Worker     d  from                               value like(xmlAutomataStatePtr)
161*7c568831SAndroid Build Coastguard Worker     d  to                                 value like(xmlAutomataStatePtr)
162*7c568831SAndroid Build Coastguard Worker     d  counter                            value like(xmlCint)
163*7c568831SAndroid Build Coastguard Worker
164*7c568831SAndroid Build Coastguard Worker     d xmlAutomataNewCounter...
165*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataNewCounter')
166*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlCint)
167*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
168*7c568831SAndroid Build Coastguard Worker     d  min                                value like(xmlCint)
169*7c568831SAndroid Build Coastguard Worker     d  max                                value like(xmlCint)
170*7c568831SAndroid Build Coastguard Worker
171*7c568831SAndroid Build Coastguard Worker     d xmlAutomataCompile...
172*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataCompile')
173*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlRegexpPtr)
174*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
175*7c568831SAndroid Build Coastguard Worker
176*7c568831SAndroid Build Coastguard Worker     d xmlAutomataIsDeterminist...
177*7c568831SAndroid Build Coastguard Worker     d                 pr                  extproc('xmlAutomataIsDeterminist')
178*7c568831SAndroid Build Coastguard Worker     d                                     like(xmlCint)
179*7c568831SAndroid Build Coastguard Worker     d  am                                 value like(xmlAutomataPtr)
180*7c568831SAndroid Build Coastguard Worker
181*7c568831SAndroid Build Coastguard Worker      /endif                                                                    AUTOMATA_ENABLED
182*7c568831SAndroid Build Coastguard Worker      /endif                                                                    LIBXML_REGEXP_ENABLD
183*7c568831SAndroid Build Coastguard Worker      /endif                                                                    XML_AUTOMATA_H__
184