The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

regexp.h

Go to the documentation of this file.
00001 /*
00002  * Definitions etc. for regexp(3) routines.
00003  *
00004  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
00005  * not the System V one.
00006  */
00007 #ifndef REGEXP_DWA20011023_H
00008 # define REGEXP_DWA20011023_H
00009 
00010 #define NSUBEXP  10
00011 typedef struct regexp {
00012         char *startp[NSUBEXP];
00013         char *endp[NSUBEXP];
00014         char regstart;          /* Internal use only. */
00015         char reganch;           /* Internal use only. */
00016         char *regmust;          /* Internal use only. */
00017         int regmlen;            /* Internal use only. */
00018         char program[1];        /* Unwarranted chumminess with compiler. */
00019 } regexp;
00020 
00021 regexp *regcomp( char *exp );
00022 int regexec( regexp *prog, char *string );
00023 void regerror( char *s );
00024 
00025 /*
00026  * The first byte of the regexp internal "program" is actually this magic
00027  * number; the start node begins in the second byte.
00028  */
00029 #define MAGIC   0234
00030 
00031 #endif
00032 

Generated on Mon Nov 8 17:07:47 2004 for MPT by  doxygen 1.3.9.1