Skip to content
Tcl Source Code Changes To String Processing
Login

Changes To String Processing

Initial version of "String Processing"


































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<h1>Source Files</h1>
  *  portions of [/finfo?name=generic/tclUtil.c|tclUtil.c]

<h1>Public Interface</h1>
  *  Tcl_Concat
  *  Tcl_StringMatch
  *  Tcl_StringCaseMatch

<h1>Private Interface</h1>
  *  TclTrimRight
  *  TclTrimLeft
  *  TclByteArrayMatch

<h1>Directly Depends On Public Interface</h1>
  *  [UTF-8 String]
  *  [Allocation]
  *  [Panic]

<h1>Directly Depends On Private Interface of</h1>
  * <i>None</i>

<h1>Discussion</h1>

These are the utilities that perform operations on 
char arrays representing Tcl string values.  They are inherently
limited to the arrays with length no greater than INT_MAX.
 They also are written for the 
Modified UTF-8 encoding expected of string values in Tcl 8.  Any
changes to those assumptions in Tcl 9 will require something new,
either revisions to these routines, or development of new routines
with broader capabilities while these persist as limited legacy
support mechanisms.