Skip to content
Tcl Source Code Changes To UTF-8 String
Login

Changes To UTF-8 String

Changes to "UTF-8 String" between 2014-09-06 23:13:09 and 2014-09-06 23:17:43

︙
53
54
55
56
57
58
59
60
61
62



63
64
65
66
67
68
69
53
54
55
56
57
58
59



60
61
62
63
64
65
66
67
68
69







-
-
-
+
+
+







<h1>Directly Depends On Private Interface of</h1>
  *  [Parsing and Evaluation]
 
<h1>Discussion</h1>

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".  Likewise the documentation refers to 
Tcl_UniChar arrays as "Unicode strings" though that use of the term isn't
conventional anywhere else.  Many of the functions expose the categorizations
referred to as "Utf", but is more precisely <a href="http://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8">Modified UTF-8</a> without surrogate pair support.  Likewise the documentation refers to 
Tcl_UniChar arrays as "Unicode strings" though that term lacks precision.  The storage in
these arrays is in UCS-2.  Many of the functions expose the categorizations
of <i>case</i> and character classes defined by Unicode.

The <i>tclWin32Dll.c</i> file contains other routines not mentioned here, but
they do not appear to belong in this function area.  The routines <b>Tcl_Win*To*</b>
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.
︙