tclUtil.c File Reference

#include "tclInt.h"
#include <float.h>
#include <math.h>

Go to the source code of this file.

Defines

#define USE_BRACES   2
#define BRACES_UNMATCHED   4
#define LOCAL_SIZE   20

Functions

int TclFindElement (Tcl_Interp *interp, CONST char *list, int listLength, CONST char **elementPtr, CONST char **nextPtr, int *sizePtr, int *bracePtr)
int TclCopyAndCollapse (int count, CONST char *src, char *dst)
int Tcl_SplitList (Tcl_Interp *interp, CONST char *list, int *argcPtr, CONST char ***argvPtr)
int TclMarkList (Tcl_Interp *interp, CONST char *list, CONST char *end, int *argcPtr, CONST int **argszPtr, CONST char ***argvPtr)
int Tcl_ScanElement (register CONST char *string, register int *flagPtr)
int Tcl_ScanCountedElement (CONST char *string, int length, int *flagPtr)
int Tcl_ConvertElement (register CONST char *src, register char *dst, register int flags)
int Tcl_ConvertCountedElement (register CONST char *src, int length, char *dst, int flags)
char * Tcl_Merge (int argc, CONST char *CONST *argv)
char Tcl_Backslash (CONST char *src, int *readPtr)
char * Tcl_Concat (int argc, CONST char *CONST *argv)
Tcl_ObjTcl_ConcatObj (int objc, Tcl_Obj *CONST objv[])
int Tcl_StringMatch (CONST char *str, CONST char *pattern)
int Tcl_StringCaseMatch (CONST char *str, CONST char *pattern, int nocase)
int TclByteArrayMatch (const unsigned char *string, int strLen, const unsigned char *pattern, int ptnLen, int flags)
int TclStringMatchObj (Tcl_Obj *strObj, Tcl_Obj *ptnObj, int flags)
void Tcl_DStringInit (Tcl_DString *dsPtr)
char * Tcl_DStringAppend (Tcl_DString *dsPtr, CONST char *bytes, int length)
char * Tcl_DStringAppendElement (Tcl_DString *dsPtr, CONST char *element)
void Tcl_DStringSetLength (Tcl_DString *dsPtr, int length)
void Tcl_DStringFree (Tcl_DString *dsPtr)
void Tcl_DStringResult (Tcl_Interp *interp, Tcl_DString *dsPtr)
void Tcl_DStringGetResult (Tcl_Interp *interp, Tcl_DString *dsPtr)
void Tcl_DStringStartSublist (Tcl_DString *dsPtr)
void Tcl_DStringEndSublist (Tcl_DString *dsPtr)
void Tcl_PrintDouble (Tcl_Interp *interp, double value, char *dst)
char * TclPrecTraceProc (ClientData clientData, Tcl_Interp *interp, CONST char *name1, CONST char *name2, int flags)
int TclNeedSpace (CONST char *start, CONST char *end)
int TclGetIntForIndex (Tcl_Interp *interp, Tcl_Obj *objPtr, int endValue, int *indexPtr)
int TclCheckBadOctal (Tcl_Interp *interp, CONST char *value)
void TclSetProcessGlobalValue (ProcessGlobalValue *pgvPtr, Tcl_Obj *newValue, Tcl_Encoding encoding)
Tcl_ObjTclGetProcessGlobalValue (ProcessGlobalValue *pgvPtr)
void TclSetObjNameOfExecutable (Tcl_Obj *name, Tcl_Encoding encoding)
Tcl_ObjTclGetObjNameOfExecutable (void)
CONST char * Tcl_GetNameOfExecutable (void)
void TclpGetTime (Tcl_Time *timePtr)
TclPlatformTypeTclGetPlatform (void)
int TclReToGlob (Tcl_Interp *interp, const char *reStr, int reStrLen, Tcl_DString *dsPtr, int *exactPtr)

Variables

Tcl_ObjType tclEndOffsetType


Define Documentation

#define BRACES_UNMATCHED   4

Definition at line 55 of file tclUtil.c.

Referenced by Tcl_ConvertCountedElement(), and Tcl_ScanCountedElement().

#define LOCAL_SIZE   20

#define USE_BRACES   2

Definition at line 54 of file tclUtil.c.

Referenced by Tcl_ConvertCountedElement(), and Tcl_ScanCountedElement().


Function Documentation

char Tcl_Backslash ( CONST char *  src,
int *  readPtr 
)

Definition at line 1035 of file tclUtil.c.

References TCL_UTF_MAX, Tcl_UtfBackslash(), and TclUtfToUniChar.

char* Tcl_Concat ( int  argc,
CONST char *CONST *  argv 
)

Definition at line 1069 of file tclUtil.c.

References ckalloc, CONST, and UCHAR.

Tcl_Obj* Tcl_ConcatObj ( int  objc,
Tcl_Obj *CONST  objv[] 
)

int Tcl_ConvertCountedElement ( register CONST char *  src,
int  length,
char *  dst,
int  flags 
)

Definition at line 817 of file tclUtil.c.

References BRACES_UNMATCHED, CONST, TCL_DONT_QUOTE_HASH, TCL_DONT_USE_BRACES, and USE_BRACES.

int Tcl_ConvertElement ( register CONST char *  src,
register char *  dst,
register int  flags 
)

Definition at line 787 of file tclUtil.c.

References Tcl_ConvertCountedElement().

char* Tcl_DStringAppendElement ( Tcl_DString dsPtr,
CONST char *  element 
)

void Tcl_DStringEndSublist ( Tcl_DString dsPtr  ) 

Definition at line 2203 of file tclUtil.c.

References Tcl_DStringAppend().

Referenced by Tcl_GetChannelOption().

void Tcl_DStringGetResult ( Tcl_Interp interp,
Tcl_DString dsPtr 
)

void Tcl_DStringResult ( Tcl_Interp interp,
Tcl_DString dsPtr 
)

void Tcl_DStringStartSublist ( Tcl_DString dsPtr  ) 

Definition at line 2174 of file tclUtil.c.

References Tcl_DStringAppend(), and TclNeedSpace().

Referenced by Tcl_GetChannelOption().

CONST char* Tcl_GetNameOfExecutable ( void   ) 

Definition at line 3185 of file tclUtil.c.

References Tcl_GetStringFromObj(), and TclGetObjNameOfExecutable().

char* Tcl_Merge ( int  argc,
CONST char *CONST *  argv 
)

void Tcl_PrintDouble ( Tcl_Interp interp,
double  value,
char *  dst 
)

int Tcl_ScanCountedElement ( CONST char *  string,
int  length,
int *  flagPtr 
)

int Tcl_ScanElement ( register CONST char *  string,
register int *  flagPtr 
)

Definition at line 622 of file tclUtil.c.

References Tcl_ScanCountedElement().

int Tcl_SplitList ( Tcl_Interp interp,
CONST char *  list,
int *  argcPtr,
CONST char ***  argvPtr 
)

int Tcl_StringCaseMatch ( CONST char *  str,
CONST char *  pattern,
int  nocase 
)

int Tcl_StringMatch ( CONST char *  str,
CONST char *  pattern 
)

int TclByteArrayMatch ( const unsigned char *  string,
int  strLen,
const unsigned char *  pattern,
int  ptnLen,
int  flags 
)

Definition at line 1574 of file tclUtil.c.

References TclByteArrayMatch().

Referenced by TclByteArrayMatch(), TclExecuteByteCode(), and TclStringMatchObj().

int TclCheckBadOctal ( Tcl_Interp interp,
CONST char *  value 
)

Definition at line 2796 of file tclUtil.c.

References CONST, Tcl_AppendResult(), and UCHAR.

int TclCopyAndCollapse ( int  count,
CONST char *  src,
char *  dst 
)

Definition at line 348 of file tclUtil.c.

References Tcl_UtfBackslash().

Referenced by Tcl_SplitList().

int TclFindElement ( Tcl_Interp interp,
CONST char *  list,
int  listLength,
CONST char **  elementPtr,
CONST char **  nextPtr,
int *  sizePtr,
int *  bracePtr 
)

Tcl_Obj* TclGetObjNameOfExecutable ( void   ) 

Definition at line 3158 of file tclUtil.c.

References TclGetProcessGlobalValue().

Referenced by Tcl_GetNameOfExecutable().

TclPlatformType* TclGetPlatform ( void   ) 

Definition at line 3240 of file tclUtil.c.

References tclPlatform.

int TclMarkList ( Tcl_Interp interp,
CONST char *  list,
CONST char *  end,
int *  argcPtr,
CONST int **  argszPtr,
CONST char ***  argvPtr 
)

Definition at line 518 of file tclUtil.c.

References ckalloc, ckfree, CONST, TCL_ERROR, TCL_OK, Tcl_SetResult(), TCL_STATIC, TclFindElement(), and UCHAR.

int TclNeedSpace ( CONST char *  start,
CONST char *  end 
)

Definition at line 2458 of file tclUtil.c.

References Tcl_UtfPrev().

Referenced by Tcl_AppendElement(), Tcl_DStringAppendElement(), and Tcl_DStringStartSublist().

void TclpGetTime ( Tcl_Time timePtr  ) 

Definition at line 3216 of file tclUtil.c.

References Tcl_GetTime().

char* TclPrecTraceProc ( ClientData  clientData,
Tcl_Interp interp,
CONST char *  name1,
CONST char *  name2,
int  flags 
)

int TclReToGlob ( Tcl_Interp interp,
const char *  reStr,
int  reStrLen,
Tcl_DString dsPtr,
int *  exactPtr 
)

void TclSetObjNameOfExecutable ( Tcl_Obj name,
Tcl_Encoding  encoding 
)

Definition at line 3130 of file tclUtil.c.

References TclSetProcessGlobalValue().

Referenced by TclpFindExecutable().

int TclStringMatchObj ( Tcl_Obj strObj,
Tcl_Obj ptnObj,
int  flags 
)


Variable Documentation

Initial value:

 {
    "end-offset",                       
    NULL,                               
    NULL,                               
    UpdateStringOfEndOffset,            
    SetEndOffsetFromAny
}

Definition at line 83 of file tclUtil.c.



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