Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

regularexp.h File Reference

Implements a layer for regex. More...

Go to the source code of this file.

I hate rm_so/eo name!

#define begin   rm_so
#define end   rm_eo

Functions

regmatch_t regfind (const char *from, const char *exp)
 Searches for a regular expression in the given string.

regoff_t regfind_start (const char *from, const char *exp)
 Searches for a regular expression in the given string, returning only the starting offset.

regoff_t regfind_end (const char *from, const char *exp)
 Searches for a regular expression in the given string, returning only the ending offset.

int regfind_count (const char *from, const char *exp)
 Searches for a regular expression in the given string, returning the number of occurrences.


Detailed Description

Implements a layer for regex.

Author:
Enrico Tassi   <sorry guy>

Alessio Caprari   <sorry guy>

Definition in file regularexp.h.


Define Documentation

#define begin   rm_so
 

Definition at line 25 of file regularexp.h.

#define end   rm_eo
 

Definition at line 26 of file regularexp.h.


Function Documentation

regmatch_t regfind const char *  from,
const char *  exp
 

Searches for a regular expression in the given string.

Parameters:
from the source string
exp the regular expression
Returns:
a struct with a begin and end fields

int regfind_count const char *  from,
const char *  exp
 

Searches for a regular expression in the given string, returning the number of occurrences.

Returns:
the number of occurrences of exp in from
See also:
regfind()

regoff_t regfind_end const char *  from,
const char *  exp
 

Searches for a regular expression in the given string, returning only the ending offset.

Returns:
The end offset of the match
See also:
regfind()

regoff_t regfind_start const char *  from,
const char *  exp
 

Searches for a regular expression in the given string, returning only the starting offset.

Returns:
The start offset of the match
See also:
regfind()


Generated on Wed May 5 15:48:04 2004 for LiberoPOPs by doxygen 1.3.6-20040222