summaryrefslogtreecommitdiffstats
path: root/doc/Utf.3
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-12 08:23:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-12 08:23:58 (GMT)
commite3f42b0c1afa79ffc4221e09f7eba2845a66f3ae (patch)
treeb3657960accdd93523e6ef4cc495cc4341698ba0 /doc/Utf.3
parentf8474f319cd5f760b58a607747e8c5d35443db8d (diff)
downloadtcl-e3f42b0c1afa79ffc4221e09f7eba2845a66f3ae.zip
tcl-e3f42b0c1afa79ffc4221e09f7eba2845a66f3ae.tar.gz
tcl-e3f42b0c1afa79ffc4221e09f7eba2845a66f3ae.tar.bz2
Little doc tweak
Diffstat (limited to 'doc/Utf.3')
-rw-r--r--doc/Utf.311
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/Utf.3 b/doc/Utf.3
index b2a8389..09e6420 100644
--- a/doc/Utf.3
+++ b/doc/Utf.3
@@ -153,13 +153,12 @@ case-insensitive (1).
.SH DESCRIPTION
.PP
These routines convert between UTF-8 strings and Unicode/Utf-16 characters.
-An Unicode character represented as an unsigned, fixed-size
-quantity. A UTF-8 character is a Unicode character represented as
-a varying-length sequence of up to \fBTCL_UTF_MAX\fR bytes. A multibyte UTF-8
-sequence consists of a lead byte followed by some number of trail bytes.
+A UTF-8 character is a Unicode character represented as a varying-length
+sequence of up to \fB4\fR bytes. A multibyte UTF-8 sequence
+consists of a lead byte followed by some number of trail bytes.
.PP
-\fBTCL_UTF_MAX\fR is the maximum number of bytes that it takes to
-represent one Unicode character in the UTF-8 representation.
+\fBTCL_UTF_MAX\fR is the maximum number of bytes that \fBTcl_UtfToUniChar\fR
+can consume in a single call.
.PP
\fBTcl_UniCharToUtf\fR stores the character \fIch\fR as a UTF-8 string
in starting at \fIbuf\fR. The return value is the number of bytes stored