102
103
104
105
106
107
108
109
110
111
112
|
102
103
104
105
106
107
108
109
110
111
112
|
-
+
|
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
length 3. Covering the entire set of Unicode codepoints requires us to support UTF-8 to up to 4 characters (<b>#define TCL_UTF_MAX 4</b>).
length 3. Covering the entire set of Unicode codepoints requires us to support UTF-8 to up to 4 byte sequences (<b>#define TCL_UTF_MAX 4</b>).
|