XmlRegexp Class Reference

XmlRegexp object. More...

#import <xmlregexp.h>

Inheritance diagram for XmlRegexp:

XmlObject List of all members.

Public Member Functions

(id) - init
 Initialize by empty regular expression.
(id) - initWithRegexp:
 Initialize regular expression for XML document.
(BOOL) - compile:
 Compile regular expression.
(BOOL) - evaluate:
 Evaluate string by compiled expression.
(void) - print:
 Print content of regexp data.

Static Public Member Functions

(id) + newWithRegexp:
 Initialize with regular expression string.

Protected Attributes

xmlRegexpPtr regexp_ptr

Detailed Description

XmlRegexp object.

Description
XmlRegexp object.


Member Function Documentation

- (BOOL) compile: (const xmlChar *)  expstr  
 

Compile regular expression.

Return values:
true Compilation successed.
false Compilation failed.
Parameters:
expstr String for regular expression.
Description
Compile regular expression.

- (BOOL) evaluate: (const xmlChar *)  src  
 

Evaluate string by compiled expression.

Return values:
true Source string matched.
false Source string did not matched.
Parameters:
src Source string.
Description
Evaluate string by compiled expression.
Warning:
You have to call compile() method before calling this method.

- (id) init  
 

Initialize by empty regular expression.

Description
Initialize by empty regular expression.

Reimplemented from XmlObject.

- (id) initWithRegexp: (xmlRegexpPtr)  regexp  
 

Initialize regular expression for XML document.

Description
Initialize the regular expression for XML document.

+ (id) newWithRegexp: (const xmlChar *)  expstr  
 

Initialize with regular expression string.

Parameters:
expstr String for regular expression
Description
Initialize with regular expression string.

- (void) print: (FILE *)  outfp  
 

Print content of regexp data.

Parameters:
outfp Output data stream.
Description
Print content of regexp data.


Member Data Documentation

- (xmlRegexpPtr) regexp_ptr [protected]
 

Regular expression


The documentation for this class was generated from the following files:
Generated on Fri Feb 3 01:21:24 2006 for LibXmlKit by  doxygen 1.4.5