blob: bba5a606021860a8d395374151b240c362bcdbb6 [file] [log] [blame]
Daniel Veillard80ce3732002-10-07 17:39:30 +00001<HTML
2><HEAD
3><TITLE
4>xmlregexp</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="xmlmemory"
17HREF="libxml-xmlmemory.html"><LINK
18REL="NEXT"
19TITLE="xmlautomata"
20HREF="libxml-xmlautomata.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-xmlmemory.html"
53><FONT
54COLOR="#FFFFFF"
55SIZE="3"
56><B
57>&#60;&#60;&#60; 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-xmlautomata.html"
107><FONT
108COLOR="#FFFFFF"
109SIZE="3"
110><B
111>Next Page &#62;&#62;&#62;</B
112></FONT
113></A
114></TD
115></TR
116></TABLE
117></DIV
118><H1
119><A
120NAME="LIBXML-XMLREGEXP">xmlregexp</H1
121><DIV
122CLASS="REFNAMEDIV"
123><A
Daniel Veillard48267432002-10-18 11:21:38 +0000124NAME="AEN27695"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000125></A
126><H2
127>Name</H2
128>xmlregexp&nbsp;--&nbsp;</DIV
129><DIV
130CLASS="REFSYNOPSISDIV"
131><A
Daniel Veillard48267432002-10-18 11:21:38 +0000132NAME="AEN27698"><H2
Daniel Veillard80ce3732002-10-07 17:39:30 +0000133>Synopsis</H2
134><TABLE
135BORDER="0"
136BGCOLOR="#D6E8FF"
137WIDTH="100%"
138CELLPADDING="6"
139><TR
140><TD
141><PRE
142CLASS="SYNOPSIS"
143>&#13;
144
145struct <A
146HREF="libxml-xmlregexp.html#XMLREGEXP"
147>xmlRegexp</A
148>;
149typedef <A
150HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
151>xmlRegexpPtr</A
152>;
153struct <A
154HREF="libxml-xmlregexp.html#XMLREGEXECCTXT"
155>xmlRegExecCtxt</A
156>;
157typedef <A
158HREF="libxml-xmlregexp.html#XMLREGEXECCTXTPTR"
159>xmlRegExecCtxtPtr</A
160>;
161<A
162HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
163>xmlRegexpPtr</A
164> <A
165HREF="libxml-xmlregexp.html#XMLREGEXPCOMPILE"
166>xmlRegexpCompile</A
167> (const <A
168HREF="libxml-tree.html#XMLCHAR"
169>xmlChar</A
170> *regexp);
171void <A
172HREF="libxml-xmlregexp.html#XMLREGFREEREGEXP"
173>xmlRegFreeRegexp</A
174> (<A
175HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
176>xmlRegexpPtr</A
177> regexp);
178int <A
179HREF="libxml-xmlregexp.html#XMLREGEXPEXEC"
180>xmlRegexpExec</A
181> (<A
182HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
183>xmlRegexpPtr</A
184> comp,
185 const <A
186HREF="libxml-tree.html#XMLCHAR"
187>xmlChar</A
188> *value);
189void <A
190HREF="libxml-xmlregexp.html#XMLREGEXPPRINT"
191>xmlRegexpPrint</A
192> (<GTKDOCLINK
193HREF="FILE-CAPS"
194>FILE</GTKDOCLINK
195> *output,
196 <A
197HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
198>xmlRegexpPtr</A
199> regexp);
200int <A
201HREF="libxml-xmlregexp.html#XMLREGEXPISDETERMINIST"
202>xmlRegexpIsDeterminist</A
203> (<A
204HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
205>xmlRegexpPtr</A
206> comp);
207void (<A
208HREF="libxml-xmlregexp.html#XMLREGEXECCALLBACKS"
209>*xmlRegExecCallbacks</A
210>) (<A
211HREF="libxml-xmlregexp.html#XMLREGEXECCTXTPTR"
212>xmlRegExecCtxtPtr</A
213> exec,
214 const <A
215HREF="libxml-tree.html#XMLCHAR"
216>xmlChar</A
217> *token,
218 void *transdata,
219 void *inputdata);
220<A
221HREF="libxml-xmlregexp.html#XMLREGEXECCTXTPTR"
222>xmlRegExecCtxtPtr</A
223> <A
224HREF="libxml-xmlregexp.html#XMLREGNEWEXECCTXT"
225>xmlRegNewExecCtxt</A
226> (<A
227HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
228>xmlRegexpPtr</A
229> comp,
230 <A
231HREF="libxml-xmlregexp.html#XMLREGEXECCALLBACKS"
232>xmlRegExecCallbacks</A
233> callback,
234 void *data);
235void <A
236HREF="libxml-xmlregexp.html#XMLREGFREEEXECCTXT"
237>xmlRegFreeExecCtxt</A
238> (<A
239HREF="libxml-xmlregexp.html#XMLREGEXECCTXTPTR"
240>xmlRegExecCtxtPtr</A
241> exec);
242int <A
243HREF="libxml-xmlregexp.html#XMLREGEXECPUSHSTRING"
244>xmlRegExecPushString</A
245> (<A
246HREF="libxml-xmlregexp.html#XMLREGEXECCTXTPTR"
247>xmlRegExecCtxtPtr</A
248> exec,
249 const <A
250HREF="libxml-tree.html#XMLCHAR"
251>xmlChar</A
252> *value,
253 void *data);</PRE
254></TD
255></TR
256></TABLE
257></DIV
258><DIV
259CLASS="REFSECT1"
260><A
Daniel Veillard48267432002-10-18 11:21:38 +0000261NAME="AEN27730"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000262></A
263><H2
264>Description</H2
265><P
266></P
267></DIV
268><DIV
269CLASS="REFSECT1"
270><A
Daniel Veillard48267432002-10-18 11:21:38 +0000271NAME="AEN27733"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000272></A
273><H2
274>Details</H2
275><DIV
276CLASS="REFSECT2"
277><A
Daniel Veillard48267432002-10-18 11:21:38 +0000278NAME="AEN27735"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000279></A
280><H3
281><A
282NAME="XMLREGEXP"
283></A
284>struct xmlRegexp</H3
285><TABLE
286BORDER="0"
287BGCOLOR="#D6E8FF"
288WIDTH="100%"
289CELLPADDING="6"
290><TR
291><TD
292><PRE
293CLASS="PROGRAMLISTING"
294>struct xmlRegexp;</PRE
295></TD
296></TR
297></TABLE
298><P
299></P
300></DIV
301><HR><DIV
302CLASS="REFSECT2"
303><A
Daniel Veillard48267432002-10-18 11:21:38 +0000304NAME="AEN27740"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000305></A
306><H3
307><A
308NAME="XMLREGEXPPTR"
309></A
310>xmlRegexpPtr</H3
311><TABLE
312BORDER="0"
313BGCOLOR="#D6E8FF"
314WIDTH="100%"
315CELLPADDING="6"
316><TR
317><TD
318><PRE
319CLASS="PROGRAMLISTING"
320>typedef xmlRegexp *xmlRegexpPtr;</PRE
321></TD
322></TR
323></TABLE
324><P
325>A libxml regular expression, they can actually be far more complex
326thank the POSIX regex expressions.</P
327><P
328></P
329></DIV
330><HR><DIV
331CLASS="REFSECT2"
332><A
Daniel Veillard48267432002-10-18 11:21:38 +0000333NAME="AEN27746"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000334></A
335><H3
336><A
337NAME="XMLREGEXECCTXT"
338></A
339>struct xmlRegExecCtxt</H3
340><TABLE
341BORDER="0"
342BGCOLOR="#D6E8FF"
343WIDTH="100%"
344CELLPADDING="6"
345><TR
346><TD
347><PRE
348CLASS="PROGRAMLISTING"
349>struct xmlRegExecCtxt;</PRE
350></TD
351></TR
352></TABLE
353><P
354></P
355></DIV
356><HR><DIV
357CLASS="REFSECT2"
358><A
Daniel Veillard48267432002-10-18 11:21:38 +0000359NAME="AEN27751"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000360></A
361><H3
362><A
363NAME="XMLREGEXECCTXTPTR"
364></A
365>xmlRegExecCtxtPtr</H3
366><TABLE
367BORDER="0"
368BGCOLOR="#D6E8FF"
369WIDTH="100%"
370CELLPADDING="6"
371><TR
372><TD
373><PRE
374CLASS="PROGRAMLISTING"
375>typedef xmlRegExecCtxt *xmlRegExecCtxtPtr;</PRE
376></TD
377></TR
378></TABLE
379><P
380>A libxml progressive regular expression evaluation context</P
381><P
382></P
383></DIV
384><HR><DIV
385CLASS="REFSECT2"
386><A
Daniel Veillard48267432002-10-18 11:21:38 +0000387NAME="AEN27757"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000388></A
389><H3
390><A
391NAME="XMLREGEXPCOMPILE"
392></A
393>xmlRegexpCompile ()</H3
394><TABLE
395BORDER="0"
396BGCOLOR="#D6E8FF"
397WIDTH="100%"
398CELLPADDING="6"
399><TR
400><TD
401><PRE
402CLASS="PROGRAMLISTING"
403><A
404HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
405>xmlRegexpPtr</A
406> xmlRegexpCompile (const <A
407HREF="libxml-tree.html#XMLCHAR"
408>xmlChar</A
409> *regexp);</PRE
410></TD
411></TR
412></TABLE
413><P
414>Parses a regular expression conforming to XML Schemas Part 2 Datatype
415Appendix F and build an automata suitable for testing strings against
416that regular expression</P
417><P
418></P
419><DIV
420CLASS="INFORMALTABLE"
421><A
Daniel Veillard48267432002-10-18 11:21:38 +0000422NAME="AEN27765"><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000423></P
424><TABLE
425BORDER="0"
426WIDTH="100%"
427BGCOLOR="#FFD0D0"
428CELLSPACING="0"
429CELLPADDING="4"
430CLASS="CALSTABLE"
431><TBODY
432><TR
433><TD
434WIDTH="20%"
435ALIGN="RIGHT"
436VALIGN="TOP"
437><TT
438CLASS="PARAMETER"
439><I
440>regexp</I
441></TT
442>&nbsp;:</TD
443><TD
444WIDTH="80%"
445ALIGN="LEFT"
446VALIGN="TOP"
447> a regular expression string</TD
448></TR
449><TR
450><TD
451WIDTH="20%"
452ALIGN="RIGHT"
453VALIGN="TOP"
454><SPAN
455CLASS="emphasis"
456><I
457CLASS="EMPHASIS"
458>Returns</I
459></SPAN
460> :</TD
461><TD
462WIDTH="80%"
463ALIGN="LEFT"
464VALIGN="TOP"
465>the compiled expression or NULL in case of error</TD
466></TR
467></TBODY
468></TABLE
469><P
470></P
471></DIV
472></DIV
473><HR><DIV
474CLASS="REFSECT2"
475><A
Daniel Veillard48267432002-10-18 11:21:38 +0000476NAME="AEN27778"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000477></A
478><H3
479><A
480NAME="XMLREGFREEREGEXP"
481></A
482>xmlRegFreeRegexp ()</H3
483><TABLE
484BORDER="0"
485BGCOLOR="#D6E8FF"
486WIDTH="100%"
487CELLPADDING="6"
488><TR
489><TD
490><PRE
491CLASS="PROGRAMLISTING"
492>void xmlRegFreeRegexp (<A
493HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
494>xmlRegexpPtr</A
495> regexp);</PRE
496></TD
497></TR
498></TABLE
499><P
500>Free a regexp</P
501><P
502></P
503><DIV
504CLASS="INFORMALTABLE"
505><A
Daniel Veillard48267432002-10-18 11:21:38 +0000506NAME="AEN27785"><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000507></P
508><TABLE
509BORDER="0"
510WIDTH="100%"
511BGCOLOR="#FFD0D0"
512CELLSPACING="0"
513CELLPADDING="4"
514CLASS="CALSTABLE"
515><TBODY
516><TR
517><TD
518WIDTH="20%"
519ALIGN="RIGHT"
520VALIGN="TOP"
521><TT
522CLASS="PARAMETER"
523><I
524>regexp</I
525></TT
526>&nbsp;:</TD
527><TD
528WIDTH="80%"
529ALIGN="LEFT"
530VALIGN="TOP"
531> the regexp</TD
532></TR
533></TBODY
534></TABLE
535><P
536></P
537></DIV
538></DIV
539><HR><DIV
540CLASS="REFSECT2"
541><A
Daniel Veillard48267432002-10-18 11:21:38 +0000542NAME="AEN27794"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000543></A
544><H3
545><A
546NAME="XMLREGEXPEXEC"
547></A
548>xmlRegexpExec ()</H3
549><TABLE
550BORDER="0"
551BGCOLOR="#D6E8FF"
552WIDTH="100%"
553CELLPADDING="6"
554><TR
555><TD
556><PRE
557CLASS="PROGRAMLISTING"
558>int xmlRegexpExec (<A
559HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
560>xmlRegexpPtr</A
561> comp,
562 const <A
563HREF="libxml-tree.html#XMLCHAR"
564>xmlChar</A
565> *value);</PRE
566></TD
567></TR
568></TABLE
569><P
570>Check if the regular expression generate the value</P
571><P
572></P
573><DIV
574CLASS="INFORMALTABLE"
575><A
Daniel Veillard48267432002-10-18 11:21:38 +0000576NAME="AEN27802"><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000577></P
578><TABLE
579BORDER="0"
580WIDTH="100%"
581BGCOLOR="#FFD0D0"
582CELLSPACING="0"
583CELLPADDING="4"
584CLASS="CALSTABLE"
585><TBODY
586><TR
587><TD
588WIDTH="20%"
589ALIGN="RIGHT"
590VALIGN="TOP"
591><TT
592CLASS="PARAMETER"
593><I
594>comp</I
595></TT
596>&nbsp;:</TD
597><TD
598WIDTH="80%"
599ALIGN="LEFT"
600VALIGN="TOP"
601> the compiled regular expression</TD
602></TR
603><TR
604><TD
605WIDTH="20%"
606ALIGN="RIGHT"
607VALIGN="TOP"
608><TT
609CLASS="PARAMETER"
610><I
611>value</I
612></TT
613>&nbsp;:</TD
614><TD
615WIDTH="80%"
616ALIGN="LEFT"
617VALIGN="TOP"
618>&nbsp;</TD
619></TR
620><TR
621><TD
622WIDTH="20%"
623ALIGN="RIGHT"
624VALIGN="TOP"
625><SPAN
626CLASS="emphasis"
627><I
628CLASS="EMPHASIS"
629>Returns</I
630></SPAN
631> :</TD
632><TD
633WIDTH="80%"
634ALIGN="LEFT"
635VALIGN="TOP"
636>1 if it matches, 0 if not and a negativa value in case of error</TD
637></TR
638></TBODY
639></TABLE
640><P
641></P
642></DIV
643></DIV
644><HR><DIV
645CLASS="REFSECT2"
646><A
Daniel Veillard48267432002-10-18 11:21:38 +0000647NAME="AEN27819"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000648></A
649><H3
650><A
651NAME="XMLREGEXPPRINT"
652></A
653>xmlRegexpPrint ()</H3
654><TABLE
655BORDER="0"
656BGCOLOR="#D6E8FF"
657WIDTH="100%"
658CELLPADDING="6"
659><TR
660><TD
661><PRE
662CLASS="PROGRAMLISTING"
663>void xmlRegexpPrint (<GTKDOCLINK
664HREF="FILE-CAPS"
665>FILE</GTKDOCLINK
666> *output,
667 <A
668HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
669>xmlRegexpPtr</A
670> regexp);</PRE
671></TD
672></TR
673></TABLE
674><P
675>Print the content of the compiled regular expression</P
676><P
677></P
678><DIV
679CLASS="INFORMALTABLE"
680><A
Daniel Veillard48267432002-10-18 11:21:38 +0000681NAME="AEN27827"><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000682></P
683><TABLE
684BORDER="0"
685WIDTH="100%"
686BGCOLOR="#FFD0D0"
687CELLSPACING="0"
688CELLPADDING="4"
689CLASS="CALSTABLE"
690><TBODY
691><TR
692><TD
693WIDTH="20%"
694ALIGN="RIGHT"
695VALIGN="TOP"
696><TT
697CLASS="PARAMETER"
698><I
699>output</I
700></TT
701>&nbsp;:</TD
702><TD
703WIDTH="80%"
704ALIGN="LEFT"
705VALIGN="TOP"
706> the file for the output debug</TD
707></TR
708><TR
709><TD
710WIDTH="20%"
711ALIGN="RIGHT"
712VALIGN="TOP"
713><TT
714CLASS="PARAMETER"
715><I
716>regexp</I
717></TT
718>&nbsp;:</TD
719><TD
720WIDTH="80%"
721ALIGN="LEFT"
722VALIGN="TOP"
723> the compiled regexp</TD
724></TR
725></TBODY
726></TABLE
727><P
728></P
729></DIV
730></DIV
731><HR><DIV
732CLASS="REFSECT2"
733><A
Daniel Veillard48267432002-10-18 11:21:38 +0000734NAME="AEN27840"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000735></A
736><H3
737><A
738NAME="XMLREGEXPISDETERMINIST"
739></A
740>xmlRegexpIsDeterminist ()</H3
741><TABLE
742BORDER="0"
743BGCOLOR="#D6E8FF"
744WIDTH="100%"
745CELLPADDING="6"
746><TR
747><TD
748><PRE
749CLASS="PROGRAMLISTING"
750>int xmlRegexpIsDeterminist (<A
751HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
752>xmlRegexpPtr</A
753> comp);</PRE
754></TD
755></TR
756></TABLE
757><P
758>Check if the regular expression is determinist</P
759><P
760></P
761><DIV
762CLASS="INFORMALTABLE"
763><A
Daniel Veillard48267432002-10-18 11:21:38 +0000764NAME="AEN27847"><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000765></P
766><TABLE
767BORDER="0"
768WIDTH="100%"
769BGCOLOR="#FFD0D0"
770CELLSPACING="0"
771CELLPADDING="4"
772CLASS="CALSTABLE"
773><TBODY
774><TR
775><TD
776WIDTH="20%"
777ALIGN="RIGHT"
778VALIGN="TOP"
779><TT
780CLASS="PARAMETER"
781><I
782>comp</I
783></TT
784>&nbsp;:</TD
785><TD
786WIDTH="80%"
787ALIGN="LEFT"
788VALIGN="TOP"
789> the compiled regular expression</TD
790></TR
791><TR
792><TD
793WIDTH="20%"
794ALIGN="RIGHT"
795VALIGN="TOP"
796><SPAN
797CLASS="emphasis"
798><I
799CLASS="EMPHASIS"
800>Returns</I
801></SPAN
802> :</TD
803><TD
804WIDTH="80%"
805ALIGN="LEFT"
806VALIGN="TOP"
807>1 if it yes, 0 if not and a negativa value in case of error</TD
808></TR
809></TBODY
810></TABLE
811><P
812></P
813></DIV
814></DIV
815><HR><DIV
816CLASS="REFSECT2"
817><A
Daniel Veillard48267432002-10-18 11:21:38 +0000818NAME="AEN27860"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000819></A
820><H3
821><A
822NAME="XMLREGEXECCALLBACKS"
823></A
824>xmlRegExecCallbacks ()</H3
825><TABLE
826BORDER="0"
827BGCOLOR="#D6E8FF"
828WIDTH="100%"
829CELLPADDING="6"
830><TR
831><TD
832><PRE
833CLASS="PROGRAMLISTING"
834>void (*xmlRegExecCallbacks) (<A
835HREF="libxml-xmlregexp.html#XMLREGEXECCTXTPTR"
836>xmlRegExecCtxtPtr</A
837> exec,
838 const <A
839HREF="libxml-tree.html#XMLCHAR"
840>xmlChar</A
841> *token,
842 void *transdata,
843 void *inputdata);</PRE
844></TD
845></TR
846></TABLE
847><P
848></P
849><DIV
850CLASS="INFORMALTABLE"
851><A
Daniel Veillard48267432002-10-18 11:21:38 +0000852NAME="AEN27867"><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000853></P
854><TABLE
855BORDER="0"
856WIDTH="100%"
857BGCOLOR="#FFD0D0"
858CELLSPACING="0"
859CELLPADDING="4"
860CLASS="CALSTABLE"
861><TBODY
862><TR
863><TD
864WIDTH="20%"
865ALIGN="RIGHT"
866VALIGN="TOP"
867><TT
868CLASS="PARAMETER"
869><I
870>exec</I
871></TT
872>&nbsp;:</TD
873><TD
874WIDTH="80%"
875ALIGN="LEFT"
876VALIGN="TOP"
877>&nbsp;</TD
878></TR
879><TR
880><TD
881WIDTH="20%"
882ALIGN="RIGHT"
883VALIGN="TOP"
884><TT
885CLASS="PARAMETER"
886><I
887>token</I
888></TT
889>&nbsp;:</TD
890><TD
891WIDTH="80%"
892ALIGN="LEFT"
893VALIGN="TOP"
894>&nbsp;</TD
895></TR
896><TR
897><TD
898WIDTH="20%"
899ALIGN="RIGHT"
900VALIGN="TOP"
901><TT
902CLASS="PARAMETER"
903><I
904>transdata</I
905></TT
906>&nbsp;:</TD
907><TD
908WIDTH="80%"
909ALIGN="LEFT"
910VALIGN="TOP"
911>&nbsp;</TD
912></TR
913><TR
914><TD
915WIDTH="20%"
916ALIGN="RIGHT"
917VALIGN="TOP"
918><TT
919CLASS="PARAMETER"
920><I
921>inputdata</I
922></TT
923>&nbsp;:</TD
924><TD
925WIDTH="80%"
926ALIGN="LEFT"
927VALIGN="TOP"
928>&nbsp;</TD
929></TR
930></TBODY
931></TABLE
932><P
933></P
934></DIV
935></DIV
936><HR><DIV
937CLASS="REFSECT2"
938><A
Daniel Veillard48267432002-10-18 11:21:38 +0000939NAME="AEN27888"
Daniel Veillard80ce3732002-10-07 17:39:30 +0000940></A
941><H3
942><A
943NAME="XMLREGNEWEXECCTXT"
944></A
945>xmlRegNewExecCtxt ()</H3
946><TABLE
947BORDER="0"
948BGCOLOR="#D6E8FF"
949WIDTH="100%"
950CELLPADDING="6"
951><TR
952><TD
953><PRE
954CLASS="PROGRAMLISTING"
955><A
956HREF="libxml-xmlregexp.html#XMLREGEXECCTXTPTR"
957>xmlRegExecCtxtPtr</A
958> xmlRegNewExecCtxt (<A
959HREF="libxml-xmlregexp.html#XMLREGEXPPTR"
960>xmlRegexpPtr</A
961> comp,
962 <A
963HREF="libxml-xmlregexp.html#XMLREGEXECCALLBACKS"
964>xmlRegExecCallbacks</A
965> callback,
966 void *data);</PRE
967></TD
968></TR
969></TABLE
970><P
971></P
972><DIV
973CLASS="INFORMALTABLE"
974><A
Daniel Veillard48267432002-10-18 11:21:38 +0000975NAME="AEN27896"><P
Daniel Veillard80ce3732002-10-07 17:39:30 +0000976></P
977><TABLE
978BORDER="0"
979WIDTH="100%"
980BGCOLOR="#FFD0D0"
981CELLSPACING="0"
982CELLPADDING="4"
983CLASS="CALSTABLE"
984><TBODY
985><TR
986><TD
987WIDTH="20%"
988ALIGN="RIGHT"
989VALIGN="TOP"
990><TT
991CLASS="PARAMETER"
992><I
993>comp</I
994></TT
995>&nbsp;:</TD
996><TD
997WIDTH="80%"
998ALIGN="LEFT"
999VALIGN="TOP"
1000>&nbsp;</TD
1001></TR
1002><TR
1003><TD
1004WIDTH="20%"
1005ALIGN="RIGHT"
1006VALIGN="TOP"
1007><TT
1008CLASS="PARAMETER"
1009><I
1010>callback</I
1011></TT
1012>&nbsp;:</TD
1013><TD
1014WIDTH="80%"
1015ALIGN="LEFT"
1016VALIGN="TOP"
1017>&nbsp;</TD
1018></TR
1019><TR
1020><TD
1021WIDTH="20%"
1022ALIGN="RIGHT"
1023VALIGN="TOP"
1024><TT
1025CLASS="PARAMETER"
1026><I
1027>data</I
1028></TT
1029>&nbsp;:</TD
1030><TD
1031WIDTH="80%"
1032ALIGN="LEFT"
1033VALIGN="TOP"
1034>&nbsp;</TD
1035></TR
1036><TR
1037><TD
1038WIDTH="20%"
1039ALIGN="RIGHT"
1040VALIGN="TOP"
1041><SPAN
1042CLASS="emphasis"
1043><I
1044CLASS="EMPHASIS"
1045>Returns</I
1046></SPAN
1047> :</TD
1048><TD
1049WIDTH="80%"
1050ALIGN="LEFT"
1051VALIGN="TOP"
1052>&nbsp;</TD
1053></TR
1054></TBODY
1055></TABLE
1056><P
1057></P
1058></DIV
1059></DIV
1060><HR><DIV
1061CLASS="REFSECT2"
1062><A
Daniel Veillard48267432002-10-18 11:21:38 +00001063NAME="AEN27917"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001064></A
1065><H3
1066><A
1067NAME="XMLREGFREEEXECCTXT"
1068></A
1069>xmlRegFreeExecCtxt ()</H3
1070><TABLE
1071BORDER="0"
1072BGCOLOR="#D6E8FF"
1073WIDTH="100%"
1074CELLPADDING="6"
1075><TR
1076><TD
1077><PRE
1078CLASS="PROGRAMLISTING"
1079>void xmlRegFreeExecCtxt (<A
1080HREF="libxml-xmlregexp.html#XMLREGEXECCTXTPTR"
1081>xmlRegExecCtxtPtr</A
1082> exec);</PRE
1083></TD
1084></TR
1085></TABLE
1086><P
1087>Free the structures associated to a regular expression evaulation context.</P
1088><P
1089></P
1090><DIV
1091CLASS="INFORMALTABLE"
1092><A
Daniel Veillard48267432002-10-18 11:21:38 +00001093NAME="AEN27924"><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001094></P
1095><TABLE
1096BORDER="0"
1097WIDTH="100%"
1098BGCOLOR="#FFD0D0"
1099CELLSPACING="0"
1100CELLPADDING="4"
1101CLASS="CALSTABLE"
1102><TBODY
1103><TR
1104><TD
1105WIDTH="20%"
1106ALIGN="RIGHT"
1107VALIGN="TOP"
1108><TT
1109CLASS="PARAMETER"
1110><I
1111>exec</I
1112></TT
1113>&nbsp;:</TD
1114><TD
1115WIDTH="80%"
1116ALIGN="LEFT"
1117VALIGN="TOP"
1118> a regular expression evaulation context</TD
1119></TR
1120></TBODY
1121></TABLE
1122><P
1123></P
1124></DIV
1125></DIV
1126><HR><DIV
1127CLASS="REFSECT2"
1128><A
Daniel Veillard48267432002-10-18 11:21:38 +00001129NAME="AEN27933"
Daniel Veillard80ce3732002-10-07 17:39:30 +00001130></A
1131><H3
1132><A
1133NAME="XMLREGEXECPUSHSTRING"
1134></A
1135>xmlRegExecPushString ()</H3
1136><TABLE
1137BORDER="0"
1138BGCOLOR="#D6E8FF"
1139WIDTH="100%"
1140CELLPADDING="6"
1141><TR
1142><TD
1143><PRE
1144CLASS="PROGRAMLISTING"
1145>int xmlRegExecPushString (<A
1146HREF="libxml-xmlregexp.html#XMLREGEXECCTXTPTR"
1147>xmlRegExecCtxtPtr</A
1148> exec,
1149 const <A
1150HREF="libxml-tree.html#XMLCHAR"
1151>xmlChar</A
1152> *value,
1153 void *data);</PRE
1154></TD
1155></TR
1156></TABLE
1157><P
1158>Push one input token in the execution context</P
1159><P
1160></P
1161><DIV
1162CLASS="INFORMALTABLE"
1163><A
Daniel Veillard48267432002-10-18 11:21:38 +00001164NAME="AEN27941"><P
Daniel Veillard80ce3732002-10-07 17:39:30 +00001165></P
1166><TABLE
1167BORDER="0"
1168WIDTH="100%"
1169BGCOLOR="#FFD0D0"
1170CELLSPACING="0"
1171CELLPADDING="4"
1172CLASS="CALSTABLE"
1173><TBODY
1174><TR
1175><TD
1176WIDTH="20%"
1177ALIGN="RIGHT"
1178VALIGN="TOP"
1179><TT
1180CLASS="PARAMETER"
1181><I
1182>exec</I
1183></TT
1184>&nbsp;:</TD
1185><TD
1186WIDTH="80%"
1187ALIGN="LEFT"
1188VALIGN="TOP"
1189> a regexp execution context</TD
1190></TR
1191><TR
1192><TD
1193WIDTH="20%"
1194ALIGN="RIGHT"
1195VALIGN="TOP"
1196><TT
1197CLASS="PARAMETER"
1198><I
1199>value</I
1200></TT
1201>&nbsp;:</TD
1202><TD
1203WIDTH="80%"
1204ALIGN="LEFT"
1205VALIGN="TOP"
1206> a string token input</TD
1207></TR
1208><TR
1209><TD
1210WIDTH="20%"
1211ALIGN="RIGHT"
1212VALIGN="TOP"
1213><TT
1214CLASS="PARAMETER"
1215><I
1216>data</I
1217></TT
1218>&nbsp;:</TD
1219><TD
1220WIDTH="80%"
1221ALIGN="LEFT"
1222VALIGN="TOP"
1223> data associated to the token to reuse in callbacks</TD
1224></TR
1225><TR
1226><TD
1227WIDTH="20%"
1228ALIGN="RIGHT"
1229VALIGN="TOP"
1230><SPAN
1231CLASS="emphasis"
1232><I
1233CLASS="EMPHASIS"
1234>Returns</I
1235></SPAN
1236> :</TD
1237><TD
1238WIDTH="80%"
1239ALIGN="LEFT"
1240VALIGN="TOP"
1241> 1 if the regexp reached a final state, 0 if non-final, and
1242a negative value in case of error.</TD
1243></TR
1244></TBODY
1245></TABLE
1246><P
1247></P
1248></DIV
1249></DIV
1250></DIV
1251><DIV
1252CLASS="NAVFOOTER"
1253><BR
1254CLEAR="all"><BR><TABLE
1255WIDTH="100%"
1256BORDER="0"
1257BGCOLOR="#000000"
1258CELLPADDING="1"
1259CELLSPACING="0"
1260><TR
1261><TD
1262WIDTH="25%"
1263BGCOLOR="#C00000"
1264ALIGN="left"
1265><A
1266HREF="libxml-xmlmemory.html"
1267><FONT
1268COLOR="#FFFFFF"
1269SIZE="3"
1270><B
1271>&#60;&#60;&#60; Previous Page</B
1272></FONT
1273></A
1274></TD
1275><TD
1276WIDTH="25%"
1277BGCOLOR="#0000C0"
1278ALIGN="center"
1279><FONT
1280COLOR="#FFFFFF"
1281SIZE="3"
1282><B
1283><A
1284HREF="book1.html"
1285><FONT
1286COLOR="#FFFFFF"
1287SIZE="3"
1288><B
1289>Home</B
1290></FONT
1291></A
1292></B
1293></FONT
1294></TD
1295><TD
1296WIDTH="25%"
1297BGCOLOR="#00C000"
1298ALIGN="center"
1299><FONT
1300COLOR="#FFFFFF"
1301SIZE="3"
1302><B
1303><A
1304HREF="libxml-lib.html"
1305><FONT
1306COLOR="#FFFFFF"
1307SIZE="3"
1308><B
1309>Up</B
1310></FONT
1311></A
1312></B
1313></FONT
1314></TD
1315><TD
1316WIDTH="25%"
1317BGCOLOR="#C00000"
1318ALIGN="right"
1319><A
1320HREF="libxml-xmlautomata.html"
1321><FONT
1322COLOR="#FFFFFF"
1323SIZE="3"
1324><B
1325>Next Page &#62;&#62;&#62;</B
1326></FONT
1327></A
1328></TD
1329></TR
1330><TR
1331><TD
1332COLSPAN="2"
1333ALIGN="left"
1334><FONT
1335COLOR="#FFFFFF"
1336SIZE="3"
1337><B
1338>xmlmemory</B
1339></FONT
1340></TD
1341><TD
1342COLSPAN="2"
1343ALIGN="right"
1344><FONT
1345COLOR="#FFFFFF"
1346SIZE="3"
1347><B
1348>xmlautomata</B
1349></FONT
1350></TD
1351></TR
1352></TABLE
1353></DIV
1354></BODY
1355></HTML
1356>