summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-05-13 09:13:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-05-13 09:13:11 (GMT)
commitad28973d3c6efdfb45d4a3227c4a797026321fbc (patch)
tree1045191dbad5a8f315160ad2fbb3ede64199e2ef /doc
parent99c0854650e170e35db77c4984ab41fb6b398f26 (diff)
parentedef93966879d501b92b245dc89aabc37bd58f79 (diff)
downloadtcl-ad28973d3c6efdfb45d4a3227c4a797026321fbc.zip
tcl-ad28973d3c6efdfb45d4a3227c4a797026321fbc.tar.gz
tcl-ad28973d3c6efdfb45d4a3227c4a797026321fbc.tar.bz2
Merge 8.6
Diffstat (limited to 'doc')
-rw-r--r--doc/Utf.37
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/Utf.3 b/doc/Utf.3
index 1faab15..263d4dd 100644
--- a/doc/Utf.3
+++ b/doc/Utf.3
@@ -291,8 +291,11 @@ to the second half of a surrogate pair, it returns -1.
\fBTcl_UtfAtIndex\fR returns a pointer to the specified character (not
byte) \fIindex\fR in the UTF-8 string \fIsrc\fR. The source string must
contain at least \fIindex\fR characters. This is equivalent to calling
-\fBTcl_UtfNext\fR \fIindex\fR times. If a negative \fIindex\fR is given,
-the return pointer points to the first character in the source string.
+\fBTcl_UtfToUniChar\fR \fIindex\fR times, except if that would return
+a pointer to the second byte of a valid 4-byte UTF-8 sequence, in which
+case, \fBTcl_UtfToUniChar\fR will be called once more to find the end
+of the sequence. If a negative \fIindex\fR is given, the returned pointer
+points to the first character in the source string.
.PP
\fBTcl_UtfBackslash\fR is a utility procedure used by several of the Tcl
commands. It parses a backslash sequence and stores the properly formed