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_Obj * | Tcl_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_Obj * | TclGetProcessGlobalValue (ProcessGlobalValue *pgvPtr) |
void | TclSetObjNameOfExecutable (Tcl_Obj *name, Tcl_Encoding encoding) |
Tcl_Obj * | TclGetObjNameOfExecutable (void) |
CONST char * | Tcl_GetNameOfExecutable (void) |
void | TclpGetTime (Tcl_Time *timePtr) |
TclPlatformType * | TclGetPlatform (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 |
Function Documentation
char Tcl_Backslash |
( |
CONST char * |
src, |
|
|
int * |
readPtr | |
|
) |
| | |
char* Tcl_Concat |
( |
int |
argc, |
|
|
CONST char *CONST * |
argv | |
|
) |
| | |
int Tcl_ConvertCountedElement |
( |
register CONST char * |
src, |
|
|
int |
length, |
|
|
char * |
dst, |
|
|
int |
flags | |
|
) |
| | |
int Tcl_ConvertElement |
( |
register CONST char * |
src, |
|
|
register char * |
dst, |
|
|
register int |
flags | |
|
) |
| | |
char* Tcl_DStringAppend |
( |
Tcl_DString * |
dsPtr, |
|
|
CONST char * |
bytes, |
|
|
int |
length | |
|
) |
| | |
Definition at line 1829 of file tclUtil.c.
References ckalloc, ckrealloc, and CONST.
Referenced by Tcl_BadChannelOption(), Tcl_CreateMathFunc(), Tcl_CreateNamespace(), Tcl_DStringEndSublist(), Tcl_DStringStartSublist(), Tcl_GetCwd(), Tcl_GetEncodingNameFromEnvironment(), Tcl_Gets(), Tcl_GlobObjCmd(), Tcl_JoinPath(), Tcl_LoadObjCmd(), Tcl_ProcObjCmd(), Tcl_RegisterConfig(), Tcl_TranslateFileName(), Tcl_UnloadObjCmd(), Tcl_VarEvalVA(), TclCallVarTraces(), TclCompileDictForCmd(), TclCompileForeachCmd(), TclCompileScript(), TclCompileSwitchCmd(), TclCompileTokens(), TclGetEnv(), TclGetNamespaceForQualName(), TclGlob(), TclMakeEnsemble(), TclpFindExecutable(), TclpFindSymbol(), TclpMatchInDirectory(), TclpObjNormalizePath(), TclRenameCommand(), and TclReToGlob().
char* Tcl_DStringAppendElement |
( |
Tcl_DString * |
dsPtr, |
|
|
CONST char * |
element | |
|
) |
| | |
Definition at line 2034 of file tclUtil.c.
References ckfree, and TCL_DSTRING_STATIC_SIZE.
Referenced by Tcl_BadChannelOption(), Tcl_CreateMathFunc(), Tcl_CreateNamespace(), TCL_DECLARE_MUTEX(), Tcl_EncodingObjCmd(), Tcl_FconfigureObjCmd(), Tcl_FileObjCmd(), Tcl_GetEncodingNameFromEnvironment(), Tcl_GlobObjCmd(), Tcl_Main(), Tcl_ProcObjCmd(), Tcl_PutEnv(), Tcl_RegExpExec(), Tcl_RegisterConfig(), Tcl_SourceRCFile(), Tcl_VarEvalVA(), TclChannelTransform(), TclCompileDictForCmd(), TclCompileForeachCmd(), TclCompileScript(), TclCompileSwitchCmd(), TclCompileTokens(), TclCreatePipeline(), TclGetEnv(), TclGetNamespaceForQualName(), TclGetProcessGlobalValue(), TclGlob(), TclMakeEnsemble(), TclNativeCreateNativeRep(), TclpCreateProcess(), TclpCreateTempFile(), TclpDlopen(), TclpFindExecutable(), TclpFindSymbol(), TclpFindVariable(), TclpGetNativePathType(), TclpGetUserHome(), TclpInitLibraryPath(), TclpMatchInDirectory(), TclpNativeToNormalized(), TclpObjCopyDirectory(), TclpObjNormalizePath(), TclpObjRemoveDirectory(), TclpOpenFile(), TclpReadlink(), TclpSetInitialEncodings(), TclpSetVariables(), TclRenameCommand(), TclReToGlob(), TclSetEnv(), TclSetupEnv(), TclSockGetPort(), and TclUnsetEnv().
Definition at line 1801 of file tclUtil.c.
References TCL_DSTRING_STATIC_SIZE.
Referenced by Tcl_BadChannelOption(), Tcl_CreateMathFunc(), Tcl_CreateNamespace(), Tcl_ExternalToUtfDString(), Tcl_FconfigureObjCmd(), Tcl_GetCwd(), Tcl_GetEncodingNameFromEnvironment(), Tcl_GlobObjCmd(), Tcl_LoadObjCmd(), Tcl_ProcObjCmd(), Tcl_RegExpExec(), Tcl_RegisterConfig(), Tcl_SourceRCFile(), Tcl_TranslateFileName(), Tcl_UnloadObjCmd(), Tcl_UtfToExternalDString(), Tcl_VarEvalVA(), TclCallVarTraces(), TclChannelTransform(), TclCompileDictForCmd(), TclCompileForeachCmd(), TclCompileScript(), TclCompileSwitchCmd(), TclCompileTokens(), TclCreatePipeline(), TclGetEnv(), TclGetNamespaceForQualName(), TclGlob(), TclMakeEnsemble(), TclpFindExecutable(), TclpFindSymbol(), TclpFindVariable(), TclpGetNativePathType(), TclpInitLibraryPath(), TclpMatchInDirectory(), TclpSetVariables(), TclRenameCommand(), TclReToGlob(), and Tcltest_Init().
void Tcl_DStringSetLength |
( |
Tcl_DString * |
dsPtr, |
|
|
int |
length | |
|
) |
| | |
Definition at line 1973 of file tclUtil.c.
References ckalloc, and ckrealloc.
Referenced by Tcl_CreateNamespace(), Tcl_ExternalToUtfDString(), Tcl_LoadObjCmd(), Tcl_UniCharToUtfDString(), Tcl_UnloadObjCmd(), Tcl_UtfToExternalDString(), Tcl_UtfToUniCharDString(), TclCompileScript(), TclGetNamespaceForQualName(), TclpFindExecutable(), TclpMatchInDirectory(), and TclReToGlob().
CONST char* Tcl_GetNameOfExecutable |
( |
void |
|
) |
|
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 | |
|
) |
| | |
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 | |
|
) |
| | |
Definition at line 1341 of file tclUtil.c.
References CONST, Tcl_StringCaseMatch(), Tcl_UniCharToLower(), Tcl_UtfPrev(), Tcl_UtfToUniChar(), TclUtfToUniChar, and UCHAR.
Referenced by Tcl_StringCaseMatch(), Tcl_StringMatch(), Tcl_SwitchObjCmd(), TclExecuteByteCode(), TclpMatchInDirectory(), and TclStringMatchObj().
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 | |
|
) |
| | |
int TclCheckBadOctal |
( |
Tcl_Interp * |
interp, |
|
|
CONST char * |
value | |
|
) |
| | |
int TclCopyAndCollapse |
( |
int |
count, |
|
|
CONST char * |
src, |
|
|
char * |
dst | |
|
) |
| | |
int TclFindElement |
( |
Tcl_Interp * |
interp, |
|
|
CONST char * |
list, |
|
|
int |
listLength, |
|
|
CONST char ** |
elementPtr, |
|
|
CONST char ** |
nextPtr, |
|
|
int * |
sizePtr, |
|
|
int * |
bracePtr | |
|
) |
| | |
Definition at line 126 of file tclUtil.c.
References CONST, TCL_ERROR, Tcl_ObjPrintf(), TCL_OK, Tcl_SetObjResult(), Tcl_SetResult(), TCL_STATIC, Tcl_UtfBackslash(), and UCHAR.
Referenced by Tcl_ParseCommand(), Tcl_SplitList(), TclListLines(), and TclMarkList().
int TclGetIntForIndex |
( |
Tcl_Interp * |
interp, |
|
|
Tcl_Obj * |
objPtr, |
|
|
int |
endValue, |
|
|
int * |
indexPtr | |
|
) |
| | |
Definition at line 2551 of file tclUtil.c.
References Tcl_Obj::internalRep, Tcl_Obj::longValue, Tcl_AppendResult(), TCL_ERROR, Tcl_GetInt(), Tcl_GetString(), TCL_OK, TCL_PARSE_INTEGER_ONLY, TCL_PARSE_NO_WHITESPACE, Tcl_ResetResult(), TclCheckBadOctal(), TclGetIntFromObj, TclGetStringFromObj, TclParseNumber(), and UCHAR.
Tcl_Obj* TclGetObjNameOfExecutable |
( |
void |
|
) |
|
Definition at line 3028 of file tclUtil.c.
References ckalloc, ckfree, ProcessGlobalValue::encoding, ProcessGlobalValue::epoch, INT2PTR, ProcessGlobalValue::key, ProcessGlobalValue::mutex, ProcessGlobalValue::numBytes, ProcessGlobalValue::proc, Tcl_CreateExitHandler(), Tcl_CreateHashEntry, Tcl_DStringFree(), Tcl_DStringLength, Tcl_DStringValue, Tcl_ExternalToUtfDString(), Tcl_FindHashEntry, Tcl_FreeEncoding(), Tcl_GetEncoding(), Tcl_GetHashValue, Tcl_IncrRefCount, Tcl_MutexLock, Tcl_MutexUnlock, Tcl_NewStringObj(), Tcl_Panic(), Tcl_SetHashValue, Tcl_UtfToExternalDString(), and ProcessGlobalValue::value.
Referenced by Tcl_GetEncodingNames(), Tcl_GetEncodingSearchPath(), Tcl_GetHostName(), TclGetLibraryPath(), and TclGetObjNameOfExecutable().
int TclMarkList |
( |
Tcl_Interp * |
interp, |
|
|
CONST char * |
list, |
|
|
CONST char * |
end, |
|
|
int * |
argcPtr, |
|
|
CONST int ** |
argszPtr, |
|
|
CONST char *** |
argvPtr | |
|
) |
| | |
int TclNeedSpace |
( |
CONST char * |
start, |
|
|
CONST char * |
end | |
|
) |
| | |
char* TclPrecTraceProc |
( |
ClientData |
clientData, |
|
|
Tcl_Interp * |
interp, |
|
|
CONST char * |
name1, |
|
|
CONST char * |
name2, |
|
|
int |
flags | |
|
) |
| | |
Definition at line 2384 of file tclUtil.c.
References Tcl_GetIntFromObj(), Tcl_GetThreadData(), Tcl_GetVar2Ex(), TCL_GLOBAL_ONLY, Tcl_InterpDeleted(), Tcl_IsSafe(), TCL_MAX_PREC, Tcl_NewIntObj(), TCL_OK, Tcl_SetVar2Ex(), TCL_TRACE_DESTROYED, TCL_TRACE_READS, TCL_TRACE_UNSETS, TCL_TRACE_WRITES, Tcl_TraceVar2(), and TclPrecTraceProc().
Referenced by TclPrecTraceProc().
int TclReToGlob |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
reStr, |
|
|
int |
reStrLen, |
|
|
Tcl_DString * |
dsPtr, |
|
|
int * |
exactPtr | |
|
) |
| | |
Definition at line 2968 of file tclUtil.c.
References ckalloc, ckfree, CONST, ProcessGlobalValue::encoding, ProcessGlobalValue::epoch, INT2PTR, ProcessGlobalValue::key, ProcessGlobalValue::mutex, ProcessGlobalValue::numBytes, Tcl_CreateExitHandler(), Tcl_CreateHashEntry, Tcl_FreeEncoding(), Tcl_GetStringFromObj(), Tcl_IncrRefCount, Tcl_MutexLock, Tcl_MutexUnlock, Tcl_SetHashValue, and ProcessGlobalValue::value.
Referenced by Tcl_SetEncodingSearchPath(), TclSetLibraryPath(), and TclSetObjNameOfExecutable().
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
1.5.1
|