os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/generic/tclRegexp.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/generic/tclRegexp.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,51 @@
1.4 +/*
1.5 + * tclRegexp.h --
1.6 + *
1.7 + * This file contains definitions used internally by Henry
1.8 + * Spencer's regular expression code.
1.9 + *
1.10 + * Copyright (c) 1998 by Sun Microsystems, Inc.
1.11 + * Copyright (c) 1998-1999 by Scriptics Corporation.
1.12 + *
1.13 + * See the file "license.terms" for information on usage and redistribution
1.14 + * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1.15 + *
1.16 + * RCS: @(#) $Id: tclRegexp.h,v 1.11 1999/08/02 17:45:38 redman Exp $
1.17 + */
1.18 +
1.19 +#ifndef _TCLREGEXP
1.20 +#define _TCLREGEXP
1.21 +
1.22 +#include "regex.h"
1.23 +
1.24 +#ifdef BUILD_tcl
1.25 +# undef TCL_STORAGE_CLASS
1.26 +# define TCL_STORAGE_CLASS DLLEXPORT
1.27 +#endif
1.28 +
1.29 +/*
1.30 + * The TclRegexp structure encapsulates a compiled regex_t,
1.31 + * the flags that were used to compile it, and an array of pointers
1.32 + * that are used to indicate subexpressions after a call to Tcl_RegExpExec.
1.33 + * Note that the string and objPtr are mutually exclusive. These values
1.34 + * are needed by Tcl_RegExpRange in order to return pointers into the
1.35 + * original string.
1.36 + */
1.37 +
1.38 +typedef struct TclRegexp {
1.39 + int flags; /* Regexp compile flags. */
1.40 + regex_t re; /* Compiled re, includes number of
1.41 + * subexpressions. */
1.42 + CONST char *string; /* Last string passed to Tcl_RegExpExec. */
1.43 + Tcl_Obj *objPtr; /* Last object passed to Tcl_RegExpExecObj. */
1.44 + regmatch_t *matches; /* Array of indices into the Tcl_UniChar
1.45 + * representation of the last string matched
1.46 + * with this regexp to indicate the location
1.47 + * of subexpressions. */
1.48 + rm_detail_t details; /* Detailed information on match (currently
1.49 + * used only for REG_EXPECT). */
1.50 + int refCount; /* Count of number of references to this
1.51 + * compiled regexp. */
1.52 +} TclRegexp;
1.53 +
1.54 +#endif /* _TCLREGEXP */