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 TCL_REG_GLOBOK_FLAGS (TCL_REG_ADVANCED | TCL_REG_NOSUB | TCL_REG_NOCASE) |
Function Documentation
Definition at line 565 of file tclRegexp.c.
References TclRegexp::flags, Tcl_Obj::internalRep, Tcl_Obj::otherValuePtr, TclRegexp::refCount, TclFreeIntRep, TclGetStringFromObj, tclRegexpType, and Tcl_Obj::typePtr.
Referenced by Tcl_RegExpMatchObj(), Tcl_RegexpObjCmd(), Tcl_RegsubObjCmd(), Tcl_SwitchObjCmd(), and TclExecuteByteCode().
Definition at line 424 of file tclRegexp.c.
References TclRegexp::flags, TclRegexp::globObjPtr, TclRegexp::objPtr, TclRegexp::string, Tcl_GetUnicodeFromObj(), TCL_MATCH_NOCASE, TCL_REG_GLOBOK_FLAGS, TCL_REG_NOCASE, and TclStringMatchObj().
Referenced by Tcl_RegExpMatchObj(), Tcl_RegexpObjCmd(), Tcl_RegsubObjCmd(), Tcl_SwitchObjCmd(), and TclExecuteByteCode().
Definition at line 533 of file tclRegexp.c.
References TclRegexp::details, Tcl_RegExpInfo::extendStart, TclRegexp::matches, Tcl_RegExpInfo::matches, Tcl_RegExpInfo::nsubs, TclRegexp::re, regex_t::re_nsub, rm_detail_t::rm_extend, and regmatch_t::rm_so.
Referenced by Tcl_RegexpObjCmd(), Tcl_RegsubObjCmd(), and Tcl_SwitchObjCmd().
int Tcl_RegExpMatch |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
text, |
|
|
const char * |
pattern | |
|
) |
| | |
void Tcl_RegExpRange |
( |
Tcl_RegExp |
re, |
|
|
int |
index, |
|
|
const char ** |
startPtr, |
|
|
const char ** |
endPtr | |
|
) |
| | |
Definition at line 632 of file tclRegexp.c.
References TclRegexp::re, regex_t::re_info, regex_t::re_nsub, REG_UBACKREF, REG_UBBS, REG_UBOUNDS, REG_UBRACES, REG_UBSALNUM, REG_UEMPTYMATCH, REG_UIMPOSSIBLE, REG_ULOCALE, REG_ULOOKAHEAD, REG_UNONPOSIX, REG_UPBOTCH, REG_USHORTEST, REG_UUNPORT, REG_UUNSPEC, Tcl_GetObjResult(), Tcl_ListObjAppendElement(), Tcl_NewIntObj(), Tcl_NewStringObj(), Tcl_ResetResult(), and TclNewObj.
Referenced by Tcl_RegexpObjCmd().
void TclRegError |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
msg, |
|
|
int |
status | |
|
) |
| | |
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
1.5.1
|