os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/generic/tclRegexp.h
Update contrib.
4 * This file contains definitions used internally by Henry
5 * Spencer's regular expression code.
7 * Copyright (c) 1998 by Sun Microsystems, Inc.
8 * Copyright (c) 1998-1999 by Scriptics Corporation.
10 * See the file "license.terms" for information on usage and redistribution
11 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 * RCS: @(#) $Id: tclRegexp.h,v 1.11 1999/08/02 17:45:38 redman Exp $
22 # undef TCL_STORAGE_CLASS
23 # define TCL_STORAGE_CLASS DLLEXPORT
27 * The TclRegexp structure encapsulates a compiled regex_t,
28 * the flags that were used to compile it, and an array of pointers
29 * that are used to indicate subexpressions after a call to Tcl_RegExpExec.
30 * Note that the string and objPtr are mutually exclusive. These values
31 * are needed by Tcl_RegExpRange in order to return pointers into the
35 typedef struct TclRegexp {
36 int flags; /* Regexp compile flags. */
37 regex_t re; /* Compiled re, includes number of
39 CONST char *string; /* Last string passed to Tcl_RegExpExec. */
40 Tcl_Obj *objPtr; /* Last object passed to Tcl_RegExpExecObj. */
41 regmatch_t *matches; /* Array of indices into the Tcl_UniChar
42 * representation of the last string matched
43 * with this regexp to indicate the location
44 * of subexpressions. */
45 rm_detail_t details; /* Detailed information on match (currently
46 * used only for REG_EXPECT). */
47 int refCount; /* Count of number of references to this
51 #endif /* _TCLREGEXP */