Skip to content
Tcl Source Code Update of ”UTF-8 String”
Login

Update of ”UTF-8 String”

Overview

Artifact ID: a10ce5401a360dcb2448adf9b9220328f1b4d5aa
Page Name:UTF-8 String
Date: 2014-08-31 20:15:22
Original User: dgp
Parent: e10c49e783b1a85f0ec93ad423c6ab885495299d (diff)
Next 4ca9f9d071af29f9ab9e2475d2c738e358a3d3eb
Content

Source Files

Public Interface

Private Interface

Directly Depends On Public Interface

Directly Depends On Private Interface of

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 tclWin32Dll.c file contains other routines not mentioned here, but they do not appear to belong in this function area. The routines Tcl_Win*To* that are mentioned here appear to be legacy routines only for Windows platforms we no longer support. They are nothing more than typecasts applied to other public routines.

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.

The three private routines are likely good candidates for exporting. They have callers. In some cases perhaps they are preferred replacements for something already public.