tclRegexp.c File Reference

#include "tclInt.h"
#include "tclRegexp.h"

Go to the source code of this file.

Data Structures

struct  ThreadSpecificData

Defines

#define NUM_REGEXPS   30
#define TCL_REG_GLOBOK_FLAGS   (TCL_REG_ADVANCED | TCL_REG_NOSUB | TCL_REG_NOCASE)

Functions

Tcl_RegExp Tcl_RegExpCompile (Tcl_Interp *interp, const char *pattern)
int Tcl_RegExpExec (Tcl_Interp *interp, Tcl_RegExp re, const char *text, const char *start)
void Tcl_RegExpRange (Tcl_RegExp re, int index, const char **startPtr, const char **endPtr)
void TclRegExpRangeUniChar (Tcl_RegExp re, int index, int *startPtr, int *endPtr)
int Tcl_RegExpMatch (Tcl_Interp *interp, const char *text, const char *pattern)
int Tcl_RegExpExecObj (Tcl_Interp *interp, Tcl_RegExp re, Tcl_Obj *textObj, int offset, int nmatches, int flags)
int Tcl_RegExpMatchObj (Tcl_Interp *interp, Tcl_Obj *textObj, Tcl_Obj *patternObj)
void Tcl_RegExpGetInfo (Tcl_RegExp regexp, Tcl_RegExpInfo *infoPtr)
Tcl_RegExp Tcl_GetRegExpFromObj (Tcl_Interp *interp, Tcl_Obj *objPtr, int flags)
int TclRegAbout (Tcl_Interp *interp, Tcl_RegExp re)
void TclRegError (Tcl_Interp *interp, const char *msg, int status)

Variables

Tcl_ObjType tclRegexpType


Define Documentation

#define NUM_REGEXPS   30

Definition at line 67 of file tclRegexp.c.

#define TCL_REG_GLOBOK_FLAGS   (TCL_REG_ADVANCED | TCL_REG_NOSUB | TCL_REG_NOCASE)

Referenced by Tcl_RegExpExecObj().


Function Documentation

Tcl_RegExp Tcl_RegExpCompile ( Tcl_Interp interp,
const char *  pattern 
)

Definition at line 136 of file tclRegexp.c.

References REG_ADVANCED.

int Tcl_RegExpExec ( Tcl_Interp interp,
Tcl_RegExp  re,
const char *  text,
const char *  start 
)

int Tcl_RegExpMatch ( Tcl_Interp interp,
const char *  text,
const char *  pattern 
)

Definition at line 391 of file tclRegexp.c.

References Tcl_RegExpCompile(), and Tcl_RegExpExec().

int Tcl_RegExpMatchObj ( Tcl_Interp interp,
Tcl_Obj textObj,
Tcl_Obj patternObj 
)

void Tcl_RegExpRange ( Tcl_RegExp  re,
int  index,
const char **  startPtr,
const char **  endPtr 
)

void TclRegError ( Tcl_Interp interp,
const char *  msg,
int  status 
)

Definition at line 711 of file tclRegexp.c.

References REG_ITOA, Tcl_AppendResult(), Tcl_ResetResult(), and Tcl_SetErrorCode().

void TclRegExpRangeUniChar ( Tcl_RegExp  re,
int  index,
int *  startPtr,
int *  endPtr 
)


Variable Documentation

Initial value:

 {
    "regexp",                           
    FreeRegexpInternalRep,              
    DupRegexpInternalRep,               
    NULL,                               
    SetRegexpFromAny                    
}

Definition at line 105 of file tclRegexp.c.



Generated on Wed Mar 12 12:18:33 2008 by  doxygen 1.5.1