tclEncoding.c File Reference#include "tclInt.h"
Go to the source code of this file.
|
Data Structures |
struct | Encoding |
struct | TableEncodingData |
struct | EscapeSubTable |
struct | EscapeEncodingData |
Defines |
#define | ENCODING_SINGLEBYTE 0 |
#define | ENCODING_DOUBLEBYTE 1 |
#define | ENCODING_MULTIBYTE 2 |
#define | ENCODING_ESCAPE 3 |
#define | PAGESIZE (256 * sizeof(unsigned short)) |
Typedefs |
typedef size_t( | LengthProc )(CONST char *src) |
Functions |
int | Tcl_GetEncodingFromObj (Tcl_Interp *interp, Tcl_Obj *objPtr, Tcl_Encoding *encodingPtr) |
Tcl_Obj * | Tcl_GetEncodingSearchPath (void) |
int | Tcl_SetEncodingSearchPath (Tcl_Obj *searchPath) |
Tcl_Obj * | TclGetLibraryPath (void) |
void | TclSetLibraryPath (Tcl_Obj *path) |
void | TclInitEncodingSubsystem (void) |
void | TclFinalizeEncodingSubsystem (void) |
CONST char * | Tcl_GetDefaultEncodingDir (void) |
void | Tcl_SetDefaultEncodingDir (CONST char *path) |
Tcl_Encoding | Tcl_GetEncoding (Tcl_Interp *interp, CONST char *name) |
void | Tcl_FreeEncoding (Tcl_Encoding encoding) |
CONST char * | Tcl_GetEncodingName (Tcl_Encoding encoding) |
void | Tcl_GetEncodingNames (Tcl_Interp *interp) |
int | Tcl_SetSystemEncoding (Tcl_Interp *interp, CONST char *name) |
Tcl_Encoding | Tcl_CreateEncoding (const Tcl_EncodingType *typePtr) |
char * | Tcl_ExternalToUtfDString (Tcl_Encoding encoding, CONST char *src, int srcLen, Tcl_DString *dstPtr) |
int | Tcl_ExternalToUtf (Tcl_Interp *interp, Tcl_Encoding encoding, CONST char *src, int srcLen, int flags, Tcl_EncodingState *statePtr, char *dst, int dstLen, int *srcReadPtr, int *dstWrotePtr, int *dstCharsPtr) |
char * | Tcl_UtfToExternalDString (Tcl_Encoding encoding, CONST char *src, int srcLen, Tcl_DString *dstPtr) |
int | Tcl_UtfToExternal (Tcl_Interp *interp, Tcl_Encoding encoding, CONST char *src, int srcLen, int flags, Tcl_EncodingState *statePtr, char *dst, int dstLen, int *srcReadPtr, int *dstWrotePtr, int *dstCharsPtr) |
void | Tcl_FindExecutable (CONST char *argv0) |
Define Documentation
#define ENCODING_DOUBLEBYTE 1 |
#define ENCODING_ESCAPE 3 |
#define ENCODING_MULTIBYTE 2 |
#define ENCODING_SINGLEBYTE 0 |
#define PAGESIZE (256 * sizeof(unsigned short)) |
Typedef Documentation
Function Documentation
Definition at line 1039 of file tclEncoding.c.
References ckalloc, Tcl_EncodingType::clientData, Encoding::clientData, Tcl_EncodingType::encodingName, Tcl_EncodingType::freeProc, Encoding::freeProc, Tcl_EncodingType::fromUtfProc, Encoding::fromUtfProc, Encoding::hPtr, Encoding::lengthProc, Encoding::name, Tcl_EncodingType::nullSize, Encoding::nullSize, Encoding::refCount, Tcl_CreateHashEntry, Tcl_GetHashValue, Tcl_MutexLock, Tcl_MutexUnlock, Tcl_SetHashValue, Tcl_EncodingType::toUtfProc, and Encoding::toUtfProc.
Referenced by TclInitEncodingSubsystem().
int Tcl_ExternalToUtf |
( |
Tcl_Interp * |
interp, |
|
|
Tcl_Encoding |
encoding, |
|
|
CONST char * |
src, |
|
|
int |
srcLen, |
|
|
int |
flags, |
|
|
Tcl_EncodingState * |
statePtr, |
|
|
char * |
dst, |
|
|
int |
dstLen, |
|
|
int * |
srcReadPtr, |
|
|
int * |
dstWrotePtr, |
|
|
int * |
dstCharsPtr | |
|
) |
| | |
Definition at line 1105 of file tclEncoding.c.
References Encoding::clientData, Encoding::lengthProc, Tcl_DString::spaceAvl, TCL_CONVERT_NOSPACE, Tcl_DStringInit(), Tcl_DStringLength, Tcl_DStringSetLength(), Tcl_DStringValue, TCL_ENCODING_END, TCL_ENCODING_START, and Encoding::toUtfProc.
Referenced by Tcl_EncodingObjCmd(), Tcl_Main(), Tcl_PutEnv(), Tcl_RegisterConfig(), TclGetEnv(), TclGetProcessGlobalValue(), TclpFindExecutable(), TclpFindVariable(), TclpGetCwd(), TclpGetUserHome(), TclpInitLibraryPath(), TclpMatchInDirectory(), TclpNativeToNormalized(), TclpObjNormalizePath(), TclpReadlink(), TclpSetVariables(), TclSetEnv(), and TclSetupEnv().
void Tcl_FindExecutable |
( |
CONST char * |
argv0 |
) |
|
CONST char* Tcl_GetDefaultEncodingDir |
( |
void |
|
) |
|
Definition at line 766 of file tclEncoding.c.
References Encoding::refCount, Tcl_FindHashEntry, Tcl_GetHashValue, Tcl_MutexLock, and Tcl_MutexUnlock.
Referenced by Tcl_CreateChannel(), Tcl_EncodingObjCmd(), Tcl_GetEncodingFromObj(), Tcl_GetEncodingNameFromEnvironment(), Tcl_GetsObj(), Tcl_RegisterConfig(), Tcl_SetChannelOption(), Tcl_SetSystemEncoding(), TclGetProcessGlobalValue(), TclInitEncodingSubsystem(), TclpFindExecutable(), and TclpInitLibraryPath().
Definition at line 908 of file tclEncoding.c.
References Encoding::name, Tcl_CreateHashEntry, Tcl_DeleteHashTable(), Tcl_DictObjFirst(), Tcl_DictObjNext(), Tcl_FirstHashEntry(), Tcl_GetHashKey, Tcl_GetHashValue, Tcl_InitObjHashTable(), Tcl_ListObjAppendElement(), Tcl_MutexLock, Tcl_MutexUnlock, Tcl_NewObj(), Tcl_NewStringObj(), Tcl_NextHashEntry(), Tcl_SetObjResult(), and TclGetProcessGlobalValue().
Referenced by Tcl_EncodingObjCmd().
Tcl_Obj* Tcl_GetEncodingSearchPath |
( |
void |
|
) |
|
void Tcl_SetDefaultEncodingDir |
( |
CONST char * |
path |
) |
|
int Tcl_SetEncodingSearchPath |
( |
Tcl_Obj * |
searchPath |
) |
|
int Tcl_SetSystemEncoding |
( |
Tcl_Interp * |
interp, |
|
|
CONST char * |
name | |
|
) |
| | |
int Tcl_UtfToExternal |
( |
Tcl_Interp * |
interp, |
|
|
Tcl_Encoding |
encoding, |
|
|
CONST char * |
src, |
|
|
int |
srcLen, |
|
|
int |
flags, |
|
|
Tcl_EncodingState * |
statePtr, |
|
|
char * |
dst, |
|
|
int |
dstLen, |
|
|
int * |
srcReadPtr, |
|
|
int * |
dstWrotePtr, |
|
|
int * |
dstCharsPtr | |
|
) |
| | |
Definition at line 1272 of file tclEncoding.c.
References Encoding::clientData, Encoding::fromUtfProc, Encoding::nullSize, Tcl_DString::spaceAvl, TCL_CONVERT_NOSPACE, Tcl_DStringInit(), Tcl_DStringLength, Tcl_DStringSetLength(), Tcl_DStringValue, TCL_ENCODING_END, and TCL_ENCODING_START.
Referenced by Tcl_EncodingObjCmd(), TclGetProcessGlobalValue(), TclNativeCreateNativeRep(), TclpCreateProcess(), TclpCreateTempFile(), TclpDlopen(), TclpFindExecutable(), TclpFindSymbol(), TclpGetUserHome(), TclpMatchInDirectory(), TclpObjCopyDirectory(), TclpObjNormalizePath(), TclpObjRemoveDirectory(), TclpOpenFile(), TclpReadlink(), TclSetEnv(), TclSockGetPort(), and TclUnsetEnv().
void TclFinalizeEncodingSubsystem |
( |
void |
|
) |
|
Tcl_Obj* TclGetLibraryPath |
( |
void |
|
) |
|
void TclInitEncodingSubsystem |
( |
void |
|
) |
|
Definition at line 544 of file tclEncoding.c.
References ckalloc, Tcl_EncodingType::clientData, Tcl_EncodingType::encodingName, TableEncodingData::fallback, Tcl_EncodingType::freeProc, TableEncodingData::fromUnicode, Tcl_EncodingType::fromUtfProc, Tcl_EncodingType::nullSize, Tcl_CreateEncoding(), Tcl_GetEncoding(), Tcl_InitHashTable(), Tcl_MutexLock, Tcl_MutexUnlock, TCL_STRING_KEYS, TableEncodingData::toUnicode, and Tcl_EncodingType::toUtfProc.
Referenced by TclInitSubsystems().
void TclSetLibraryPath |
( |
Tcl_Obj * |
path |
) |
|
Generated on Wed Mar 12 12:18:30 2008 by
1.5.1
|