summaryrefslogtreecommitdiffstats
path: root/doc/Utf.3
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-23 20:09:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-05-23 20:09:24 (GMT)
commitca0f6f2273f4dd8d7b7449a4da43e34d5a98d4f2 (patch)
tree3e0b07f6812a5848ee549cc167985bb03acf98da /doc/Utf.3
parentb013797f961380e6a2ddd366c96c570d736bd746 (diff)
parenta9e7c22c38a58f2248f2bd51529411914cd16e06 (diff)
downloadtcl-ca0f6f2273f4dd8d7b7449a4da43e34d5a98d4f2.zip
tcl-ca0f6f2273f4dd8d7b7449a4da43e34d5a98d4f2.tar.gz
tcl-ca0f6f2273f4dd8d7b7449a4da43e34d5a98d4f2.tar.bz2
merge trunk
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 31784a9..993974c 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 *
@@ -138,6 +138,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.