D 2014-08-31T20:07:40.817 L UTF-8\sString P 21f2c62a0740c4d67e78d3de41ab0720565da064 U dgp W 2083

Source Files

* [/finfo?name=generic/tclUtf.c|tclUtf.c] * [/finfo?name=win/tclWin32Dll.c|tclWin32Dll.c]

Public Interface

* Tcl_UniCharToUtf * Tcl_UniCharToUtfDString * Tcl_UtfToUniChar * Tcl_UtfToUniCharDString * Tcl_UtfCharComplete * Tcl_NumUtfChars * Tcl_UtfFindFirst * Tcl_UtfFindLast * Tcl_UtfNext * Tcl_UtfPrev * Tcl_UniCharAtIndex * Tcl_UtfAtIndex * Tcl_UtfBackslash * Tcl_UtfToUpper * Tcl_UtfToLower * Tcl_UtfToTitle * Tcl_UtfNcmp * Tcl_UtfNcasecmp * Tcl_UniCharToUpper * Tcl_UniCharToLower * Tcl_UniCharToTitle * Tcl_UniCharLen * Tcl_UniCharNcmp * Tcl_UniCharNcasecmp * Tcl_UniCharIsAlnum * Tcl_UniCharIsAlpha * Tcl_UniCharIsControl * Tcl_UniCharIsDigit * Tcl_UniCharIsGraph * Tcl_UniCharIsLower * Tcl_UniCharIsPrint * Tcl_UniCharIsPunct * Tcl_UniCharIsSpace * Tcl_UniCharIsUpper * Tcl_UniCharIsWordChar * Tcl_UniCharCaseMatch * Tcl_WinUtfToTChar * Tcl_WinTCharToUtf

Private Interface

* TclUtfCaseCmp * TclUniCharMatch * TclpUtfNcmp2

Directly Depends On Public Interface

* [Object System and Fundamental Object Types]

Directly Depends On Private Interface of

* [Parsing and Evaluation]

Discussion

This module provides a set of utility functions to operate on Tcl_UniChar arrays and char arrays with content in the internal encoding of Tcl 8. This encoding is misleadingly referred to as "Utf". Many of the functions expose the categorizations of case and character classes defined by Unicode. The dependence on [Parsing and Evaluation] internals is only in Tcl_UtfBackslash which arguably belongs in parsing instead, and the use of TclIsSpaceProc which could easily be avoided. The dependence on [Object System and Fundamental Object Types] is only in the exporting interfaces to Tcl_DString, also easily remedied. This module is well within reach of being entirely self contained. Z a42d3378411b9b1c3d7fe9921c48e516