44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
-
+
|
<h1>Private Interface</h1>
* TclUtfCasecmp
* TclUniCharMatch
* TclpUtfNcmp2
<h1>Directly Depends On Public Interface</h1>
* [Object System and Fundamental Object Types]
* [Dynamic Strings]
<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
|
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
-
+
|
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.
The dependence on [Parsing and Evaluation] internals is only in <b>Tcl_UtfBackslash</b>
which arguably belongs in parsing instead, and the use of <b>TclIsSpaceProc</b> which
could easily be avoided. The dependence on [Object System and Fundamental Object Types]
could easily be avoided. The dependence on [Dynamic Strings]
is only in the exporting interfaces to <b>Tcl_DString</b>, 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.
The key flaw here is that UCS-2 fails to encode the complete set of Unicode codepoints.
|