diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-22 15:43:22 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-22 15:43:22 (GMT) |
commit | e3e97685c5828c76e204f0b03aa9167f57aa8bf1 (patch) | |
tree | 03c7e10928abfd63195d2d3e2e3f7337d123e791 /doc | |
parent | 9fc36886d65d9528baf88a93e59957a5b125b778 (diff) | |
parent | 954d7b33134d9e2aef219ae5c829e4062eaf1da8 (diff) | |
download | tcl-e3e97685c5828c76e204f0b03aa9167f57aa8bf1.zip tcl-e3e97685c5828c76e204f0b03aa9167f57aa8bf1.tar.gz tcl-e3e97685c5828c76e204f0b03aa9167f57aa8bf1.tar.bz2 |
Merge 8.7
Diffstat (limited to 'doc')
-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 826f80e..7e9e56b 100644 --- a/doc/StringObj.3 +++ b/doc/StringObj.3 @@ -213,12 +213,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 |