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_ObjTcl_GetEncodingSearchPath (void)
int Tcl_SetEncodingSearchPath (Tcl_Obj *searchPath)
Tcl_ObjTclGetLibraryPath (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

Definition at line 133 of file tclEncoding.c.

#define ENCODING_ESCAPE   3

Definition at line 135 of file tclEncoding.c.

#define ENCODING_MULTIBYTE   2

Definition at line 134 of file tclEncoding.c.

#define ENCODING_SINGLEBYTE   0

Definition at line 132 of file tclEncoding.c.

#define PAGESIZE   (256 * sizeof(unsigned short))


Typedef Documentation

typedef size_t( LengthProc)(CONST char *src)

Definition at line 16 of file tclEncoding.c.


Function Documentation

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 
)

void Tcl_FindExecutable ( CONST char *  argv0  ) 

Definition at line 1434 of file tclEncoding.c.

References TclInitSubsystems(), TclpFindExecutable(), and TclpSetInitialEncodings().

Referenced by Tcl_Main().

void Tcl_FreeEncoding ( Tcl_Encoding  encoding  ) 

CONST char* Tcl_GetDefaultEncodingDir ( void   ) 

int Tcl_GetEncodingFromObj ( Tcl_Interp interp,
Tcl_Obj objPtr,
Tcl_Encoding encodingPtr 
)

CONST char* Tcl_GetEncodingName ( Tcl_Encoding  encoding  ) 

Definition at line 879 of file tclEncoding.c.

Referenced by Tcl_CreateChannel(), Tcl_EncodingObjCmd(), and Tcl_GetChannelOption().

Tcl_Obj* Tcl_GetEncodingSearchPath ( void   ) 

Definition at line 375 of file tclEncoding.c.

References TclGetProcessGlobalValue().

Referenced by Tcl_GetDefaultEncodingDir(), and Tcl_SetDefaultEncodingDir().

void Tcl_SetDefaultEncodingDir ( CONST char *  path  ) 

int Tcl_SetEncodingSearchPath ( Tcl_Obj searchPath  ) 

Definition at line 392 of file tclEncoding.c.

References TCL_ERROR, Tcl_ListObjLength(), TCL_OK, and TclSetProcessGlobalValue().

Referenced by Tcl_SetDefaultEncodingDir().

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 
)

void TclFinalizeEncodingSubsystem ( void   ) 

Tcl_Obj* TclGetLibraryPath ( void   ) 

Definition at line 419 of file tclEncoding.c.

References TclGetProcessGlobalValue().

void TclSetLibraryPath ( Tcl_Obj path  ) 

Definition at line 440 of file tclEncoding.c.

References TCL_ERROR, Tcl_ListObjLength(), and TclSetProcessGlobalValue().



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