summaryrefslogtreecommitdiffstats
path: root/doc/Utf.3
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2018-04-27 13:21:27 (GMT)
committerdgp <dgp@users.sourceforge.net>2018-04-27 13:21:27 (GMT)
commit5238a999d546fe6f590a75fc34361e0d545ab47a (patch)
tree86f982c66243157bbcf31d1263ec12b784b20daa /doc/Utf.3
parentab49bdfd12dd83f49e1151bcc11015d1d389b21d (diff)
parent9e733498f1466c92a943ac1c7843296e7e2e6d64 (diff)
downloadtcl-5238a999d546fe6f590a75fc34361e0d545ab47a.zip
tcl-5238a999d546fe6f590a75fc34361e0d545ab47a.tar.gz
tcl-5238a999d546fe6f590a75fc34361e0d545ab47a.tar.bz2
merge 8.7
Diffstat (limited to 'doc/Utf.3')
-rw-r--r--doc/Utf.35
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/Utf.3 b/doc/Utf.3
index 9d0c617..78d795e 100644
--- a/doc/Utf.3
+++ b/doc/Utf.3
@@ -63,7 +63,7 @@ const char *
const char *
\fBTcl_UtfPrev\fR(\fIsrc, start\fR)
.sp
-Tcl_UniChar
+int
\fBTcl_UniCharAtIndex\fR(\fIsrc, index\fR)
.sp
const char *
@@ -140,6 +140,9 @@ number of bytes read from \fIsrc\fR. The caller must ensure that the
source buffer is long enough such that this routine does not run off the
end and dereference non-existent or random memory; if the source buffer
is known to be null-terminated, this will not happen. If the input is
+a byte in the range 0x80 - 0x9F, \fBTcl_UtfToUniChar\fR assumes the
+cp1252 encoding, stores the corresponding Tcl_UniChar in \fI*chPtr\fR
+and returns 1. If the input is otherwise
not in proper UTF-8 format, \fBTcl_UtfToUniChar\fR will store the first
byte of \fIsrc\fR in \fI*chPtr\fR as a Tcl_UniChar between 0x0000 and
0x00ff and return 1.