tclUtf.c File Reference

#include "tclInt.h"
#include "tclUniData.c"

Go to the source code of this file.

Defines

#define ALPHA_BITS
#define DIGIT_BITS   (1 << DECIMAL_DIGIT_NUMBER)
#define SPACE_BITS
#define CONNECTOR_BITS   (1 << CONNECTOR_PUNCTUATION)
#define PRINT_BITS
#define PUNCT_BITS
#define UNICODE_SELF   0x80
#define LINE_LENGTH   128

Functions

INLINE int Tcl_UniCharToUtf (int ch, char *buf)
char * Tcl_UniCharToUtfDString (CONST Tcl_UniChar *uniStr, int uniLength, Tcl_DString *dsPtr)
int Tcl_UtfToUniChar (register CONST char *src, register Tcl_UniChar *chPtr)
Tcl_UniCharTcl_UtfToUniCharDString (CONST char *src, int length, Tcl_DString *dsPtr)
int Tcl_UtfCharComplete (CONST char *src, int length)
int Tcl_NumUtfChars (register CONST char *src, int length)
CONST char * Tcl_UtfFindFirst (CONST char *src, int ch)
CONST char * Tcl_UtfFindLast (CONST char *src, int ch)
CONST char * Tcl_UtfNext (CONST char *src)
CONST char * Tcl_UtfPrev (CONST char *src, CONST char *start)
Tcl_UniChar Tcl_UniCharAtIndex (register CONST char *src, register int index)
CONST char * Tcl_UtfAtIndex (register CONST char *src, register int index)
int Tcl_UtfBackslash (CONST char *src, int *readPtr, char *dst)
int Tcl_UtfToUpper (char *str)
int Tcl_UtfToLower (char *str)
int Tcl_UtfToTitle (char *str)
int TclpUtfNcmp2 (CONST char *cs, CONST char *ct, unsigned long numBytes)
int Tcl_UtfNcmp (CONST char *cs, CONST char *ct, unsigned long numChars)
int Tcl_UtfNcasecmp (CONST char *cs, CONST char *ct, unsigned long numChars)
Tcl_UniChar Tcl_UniCharToUpper (int ch)
Tcl_UniChar Tcl_UniCharToLower (int ch)
Tcl_UniChar Tcl_UniCharToTitle (int ch)
int Tcl_UniCharLen (CONST Tcl_UniChar *uniStr)
int Tcl_UniCharNcmp (CONST Tcl_UniChar *ucs, CONST Tcl_UniChar *uct, unsigned long numChars)
int Tcl_UniCharNcasecmp (CONST Tcl_UniChar *ucs, CONST Tcl_UniChar *uct, unsigned long numChars)
int Tcl_UniCharIsAlnum (int ch)
int Tcl_UniCharIsAlpha (int ch)
int Tcl_UniCharIsControl (int ch)
int Tcl_UniCharIsDigit (int ch)
int Tcl_UniCharIsGraph (int ch)
int Tcl_UniCharIsLower (int ch)
int Tcl_UniCharIsPrint (int ch)
int Tcl_UniCharIsPunct (int ch)
int Tcl_UniCharIsSpace (int ch)
int Tcl_UniCharIsUpper (int ch)
int Tcl_UniCharIsWordChar (int ch)
int Tcl_UniCharCaseMatch (CONST Tcl_UniChar *uniStr, CONST Tcl_UniChar *uniPattern, int nocase)
int TclUniCharMatch (CONST Tcl_UniChar *string, int strLen, CONST Tcl_UniChar *pattern, int ptnLen, int nocase)


Define Documentation

#define ALPHA_BITS

Value:

((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) \
        | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1<<OTHER_LETTER))

Definition at line 28 of file tclUtf.c.

Referenced by Tcl_UniCharIsAlnum(), Tcl_UniCharIsAlpha(), and Tcl_UniCharIsWordChar().

#define CONNECTOR_BITS   (1 << CONNECTOR_PUNCTUATION)

Definition at line 36 of file tclUtf.c.

Referenced by Tcl_UniCharIsWordChar().

#define DIGIT_BITS   (1 << DECIMAL_DIGIT_NUMBER)

Definition at line 31 of file tclUtf.c.

Referenced by Tcl_UniCharIsAlnum(), and Tcl_UniCharIsWordChar().

#define LINE_LENGTH   128

Referenced by Tcl_UtfBackslash().

#define PRINT_BITS

Value:

Definition at line 38 of file tclUtf.c.

Referenced by Tcl_UniCharIsGraph(), and Tcl_UniCharIsPrint().

#define PUNCT_BITS

Value:

Definition at line 48 of file tclUtf.c.

Referenced by Tcl_UniCharIsPunct().

#define SPACE_BITS

Value:

((1 << SPACE_SEPARATOR) | (1 << LINE_SEPARATOR) \
        | (1 << PARAGRAPH_SEPARATOR))

Definition at line 33 of file tclUtf.c.

Referenced by Tcl_UniCharIsSpace().

#define UNICODE_SELF   0x80

Definition at line 58 of file tclUtf.c.

Referenced by Tcl_UniCharToUtf().


Function Documentation

int Tcl_NumUtfChars ( register CONST char *  src,
int  length 
)

Definition at line 487 of file tclUtf.c.

References Tcl_UtfToUniChar(), TclUtfToUniChar, and UCHAR.

Tcl_UniChar Tcl_UniCharAtIndex ( register CONST char *  src,
register int  index 
)

Definition at line 705 of file tclUtf.c.

References TclUtfToUniChar.

int Tcl_UniCharCaseMatch ( CONST Tcl_UniChar uniStr,
CONST Tcl_UniChar uniPattern,
int  nocase 
)

Definition at line 1610 of file tclUtf.c.

References Tcl_UniCharCaseMatch(), and Tcl_UniCharToLower().

Referenced by Tcl_UniCharCaseMatch().

int Tcl_UniCharIsAlnum ( int  ch  ) 

Definition at line 1330 of file tclUtf.c.

References ALPHA_BITS, DIGIT_BITS, GetUniCharInfo, and UNICODE_CATEGORY_MASK.

int Tcl_UniCharIsAlpha ( int  ch  ) 

Definition at line 1355 of file tclUtf.c.

References ALPHA_BITS, GetUniCharInfo, and UNICODE_CATEGORY_MASK.

int Tcl_UniCharIsControl ( int  ch  ) 

Definition at line 1379 of file tclUtf.c.

References CONTROL, GetUniCharInfo, and UNICODE_CATEGORY_MASK.

int Tcl_UniCharIsDigit ( int  ch  ) 

Definition at line 1402 of file tclUtf.c.

References DECIMAL_DIGIT_NUMBER, GetUniCharInfo, and UNICODE_CATEGORY_MASK.

int Tcl_UniCharIsGraph ( int  ch  ) 

Definition at line 1425 of file tclUtf.c.

References GetUniCharInfo, PRINT_BITS, and UNICODE_CATEGORY_MASK.

int Tcl_UniCharIsLower ( int  ch  ) 

Definition at line 1449 of file tclUtf.c.

References GetUniCharInfo, LOWERCASE_LETTER, and UNICODE_CATEGORY_MASK.

int Tcl_UniCharIsPrint ( int  ch  ) 

Definition at line 1472 of file tclUtf.c.

References GetUniCharInfo, PRINT_BITS, and UNICODE_CATEGORY_MASK.

int Tcl_UniCharIsPunct ( int  ch  ) 

Definition at line 1496 of file tclUtf.c.

References GetUniCharInfo, PUNCT_BITS, and UNICODE_CATEGORY_MASK.

int Tcl_UniCharIsSpace ( int  ch  ) 

Definition at line 1520 of file tclUtf.c.

References GetUniCharInfo, SPACE_BITS, UCHAR, and UNICODE_CATEGORY_MASK.

Referenced by Tcl_ScanObjCmd().

int Tcl_UniCharIsUpper ( int  ch  ) 

Definition at line 1555 of file tclUtf.c.

References GetUniCharInfo, UNICODE_CATEGORY_MASK, and UPPERCASE_LETTER.

int Tcl_UniCharIsWordChar ( int  ch  ) 

Definition at line 1578 of file tclUtf.c.

References ALPHA_BITS, CONNECTOR_BITS, DIGIT_BITS, GetUniCharInfo, and UNICODE_CATEGORY_MASK.

int Tcl_UniCharLen ( CONST Tcl_UniChar uniStr  ) 

Definition at line 1220 of file tclUtf.c.

int Tcl_UniCharNcasecmp ( CONST Tcl_UniChar ucs,
CONST Tcl_UniChar uct,
unsigned long  numChars 
)

Definition at line 1295 of file tclUtf.c.

References Tcl_UniCharToLower().

Referenced by Tcl_RegsubObjCmd().

int Tcl_UniCharNcmp ( CONST Tcl_UniChar ucs,
CONST Tcl_UniChar uct,
unsigned long  numChars 
)

Definition at line 1250 of file tclUtf.c.

Referenced by Tcl_RegsubObjCmd().

Tcl_UniChar Tcl_UniCharToTitle ( int  ch  ) 

Definition at line 1183 of file tclUtf.c.

References GetCaseType, GetDelta, and GetUniCharInfo.

Referenced by Tcl_UtfToTitle().

Tcl_UniChar Tcl_UniCharToUpper ( int  ch  ) 

Definition at line 1125 of file tclUtf.c.

References GetCaseType, GetDelta, and GetUniCharInfo.

Referenced by Tcl_UtfToUpper().

INLINE int Tcl_UniCharToUtf ( int  ch,
char *  buf 
)

char* Tcl_UniCharToUtfDString ( CONST Tcl_UniChar uniStr,
int  uniLength,
Tcl_DString dsPtr 
)

CONST char* Tcl_UtfAtIndex ( register CONST char *  src,
register int  index 
)

Definition at line 736 of file tclUtf.c.

References TclUtfToUniChar.

int Tcl_UtfBackslash ( CONST char *  src,
int *  readPtr,
char *  dst 
)

int Tcl_UtfCharComplete ( CONST char *  src,
int  length 
)

Definition at line 457 of file tclUtf.c.

Referenced by Tcl_ParseVarName(), and TclParseBackslash().

CONST char* Tcl_UtfFindFirst ( CONST char *  src,
int  ch 
)

Definition at line 547 of file tclUtf.c.

References TclUtfToUniChar.

CONST char* Tcl_UtfFindLast ( CONST char *  src,
int  ch 
)

Definition at line 586 of file tclUtf.c.

References CONST, and TclUtfToUniChar.

int Tcl_UtfNcasecmp ( CONST char *  cs,
CONST char *  ct,
unsigned long  numChars 
)

Definition at line 1083 of file tclUtf.c.

References Tcl_UniCharToLower(), and TclUtfToUniChar.

int Tcl_UtfNcmp ( CONST char *  cs,
CONST char *  ct,
unsigned long  numChars 
)

Definition at line 1035 of file tclUtf.c.

References TclUtfToUniChar.

CONST char* Tcl_UtfNext ( CONST char *  src  ) 

Definition at line 628 of file tclUtf.c.

References TclUtfToUniChar.

CONST char* Tcl_UtfPrev ( CONST char *  src,
CONST char *  start 
)

Definition at line 658 of file tclUtf.c.

References CONST, and TCL_UTF_MAX.

Referenced by Tcl_AppendLimitedToObj(), Tcl_StringCaseMatch(), and TclNeedSpace().

int Tcl_UtfToLower ( char *  str  ) 

int Tcl_UtfToTitle ( char *  str  ) 

int Tcl_UtfToUniChar ( register CONST char *  src,
register Tcl_UniChar chPtr 
)

Definition at line 294 of file tclUtf.c.

Tcl_UniChar* Tcl_UtfToUniCharDString ( CONST char *  src,
int  length,
Tcl_DString dsPtr 
)

Definition at line 398 of file tclUtf.c.

References CONST, Tcl_DStringLength, Tcl_DStringSetLength(), Tcl_DStringValue, and TclUtfToUniChar.

Referenced by Tcl_RegExpExec().

int Tcl_UtfToUpper ( char *  str  ) 

Definition at line 821 of file tclUtf.c.

References Tcl_UniCharToUpper(), Tcl_UniCharToUtf(), and TclUtfToUniChar.

Referenced by Tcl_AppendFormatToObj().

int TclpUtfNcmp2 ( CONST char *  cs,
CONST char *  ct,
unsigned long  numBytes 
)

Definition at line 988 of file tclUtf.c.

References UCHAR.

Referenced by TclExecuteByteCode().

int TclUniCharMatch ( CONST Tcl_UniChar string,
int  strLen,
CONST Tcl_UniChar pattern,
int  ptnLen,
int  nocase 
)

Definition at line 1798 of file tclUtf.c.

References CONST, Tcl_UniCharToLower(), and TclUniCharMatch().

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



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