summaryrefslogtreecommitdiffstats
path: root/doc/Utf.3
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-24 13:05:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-03-24 13:05:07 (GMT)
commit388ed8fba7742f409a647c0a636e8376c587927c (patch)
treed4f0cae922a02eeaad6e18eded968cfd18abd694 /doc/Utf.3
parentebd469c2a80c1ea381dfb847e3e1a0f2301f1662 (diff)
parent0f1fe8880dc481b214a344189a6a6904b59eede0 (diff)
downloadtcl-388ed8fba7742f409a647c0a636e8376c587927c.zip
tcl-388ed8fba7742f409a647c0a636e8376c587927c.tar.gz
tcl-388ed8fba7742f409a647c0a636e8376c587927c.tar.bz2
Merge 8.7
Diffstat (limited to 'doc/Utf.3')
-rw-r--r--doc/Utf.38
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/Utf.3 b/doc/Utf.3
index f638f84..f082e22 100644
--- a/doc/Utf.3
+++ b/doc/Utf.3
@@ -144,7 +144,7 @@ If non-NULL, filled with the number of bytes in the backslash sequence,
including the backslash character.
.AP char *dst out
Buffer in which the bytes represented by the backslash sequence are stored.
-At most \fBTCL_UTF_MAX\fR bytes are stored in the buffer.
+At most 4 bytes are stored in the buffer.
.AP int nocase in
Specifies whether the match should be done case-sensitive (0) or
case-insensitive (1).
@@ -179,8 +179,8 @@ 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.
+byte of \fIsrc\fR in \fI*chPtr\fR as a Tcl_UniChar between 0x00A0 and
+0x00FF and return 1.
.PP
\fBTcl_UniCharToUtfDString\fR converts the given Unicode string
to UTF-8, storing the result in a previously initialized \fBTcl_DString\fR.
@@ -289,7 +289,7 @@ the return pointer points to the first character in the source string.
\fBTcl_UtfBackslash\fR is a utility procedure used by several of the Tcl
commands. It parses a backslash sequence and stores the properly formed
UTF-8 character represented by the backslash sequence in the output
-buffer \fIdst\fR. At most \fBTCL_UTF_MAX\fR bytes are stored in the buffer.
+buffer \fIdst\fR. At most 4 bytes are stored in the buffer.
\fBTcl_UtfBackslash\fR modifies \fI*readPtr\fR to contain the number
of bytes in the backslash sequence, including the backslash character.
The return value is the number of bytes stored in the output buffer.