diff options
author | oehhar <harald.oehlmann@elmicron.de> | 2024-01-22 14:28:07 (GMT) |
---|---|---|
committer | oehhar <harald.oehlmann@elmicron.de> | 2024-01-22 14:28:07 (GMT) |
commit | b98f4c049b4144f181165c34ed50f7cece927730 (patch) | |
tree | be0643ad0be45e1f43dd6a2dc1fa8026acf0be41 | |
parent | 0a1b304cf5f4017ec43d0d2b0ef7993ceba2382c (diff) | |
parent | a7841c171a88e7a2c8093141bff39d0232748f9c (diff) | |
download | tcl-b98f4c049b4144f181165c34ed50f7cece927730.zip tcl-b98f4c049b4144f181165c34ed50f7cece927730.tar.gz tcl-b98f4c049b4144f181165c34ed50f7cece927730.tar.bz2 |
Merge TCL8.6
-rw-r--r-- | doc/StringObj.3 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/StringObj.3 b/doc/StringObj.3 index 7a0ae8f..49c32c0 100644 --- a/doc/StringObj.3 +++ b/doc/StringObj.3 @@ -223,12 +223,16 @@ to bytes) in the string value. \fBTcl_AppendToObj\fR appends the data given by \fIbytes\fR and \fIlength\fR to the string representation of the value specified by \fIobjPtr\fR. If the value has an invalid string representation, -then an attempt is made to convert \fIbytes\fR is to the Unicode +then an attempt is made to convert \fIbytes\fR to the Unicode format. If the conversion is successful, then the converted form of \fIbytes\fR is appended to the value's Unicode representation. Otherwise, the value's Unicode representation is invalidated and converted to the UTF format, and \fIbytes\fR is appended to the value's new string representation. +\fIlength\fR bytes are allocated and not filled, if \fIbytes\fR is a +null pointer. +Eventually buffer growth is optimized by large allocations to optimize +multiple calls. .PP \fBTcl_AppendUnicodeToObj\fR appends the Unicode string given by \fIunicode\fR and \fInumChars\fR to the value specified by |