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-07 02:29:08 and 2014-09-07 02:30:55

︙
94
95
96
97
98
99
100
101

102
103
104
105
106
107
108
94
95
96
97
98
99
100

101
102
103
104
105
106
107
108







-
+







deprecated legacy support routines.

There is no fully specified answer for efficient implementation of the string operations
currently performed using Tcl_UniChar arrays while keeping the data in Modified UTF-8.
The "rope" data structure may be helpful, or other indexing systems marking out
substrings to speed up random access to arbitrary indices.

Unicode normalization forms have not been address at all In Tcl's unicode string
Unicode normalization forms have not been address at all in Tcl's unicode string
handling.  In particular, canonically equivalent Unicode strings do not test as 
equal according to the [string equal] command.  These complications also undermine
the apparent efficiency value of a fixed-width encoding, decreasing the odds that the
Tcl_UniChar will play an important role going forward.

The current BMP limitation of Tcl strings has had another consequence in its
UTF-8 management.  The longest byte sequences decoded into codepoints have
︙