summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-07-18 22:15:45 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-07-18 22:15:45 (GMT)
commit9e2c8524411f3f35025c354c7b90c2c2bdc3703e (patch)
tree7486c6d046b8b4781de7d788b9bae7917f28fcb8 /doc
parent2e2da60bd41af1072289035d579de333b228685f (diff)
downloadtcl-9e2c8524411f3f35025c354c7b90c2c2bdc3703e.zip
tcl-9e2c8524411f3f35025c354c7b90c2c2bdc3703e.tar.gz
tcl-9e2c8524411f3f35025c354c7b90c2c2bdc3703e.tar.bz2
Tightened up Tcl_Utf{Next,Prev} docs. [Bug 769895]
Diffstat (limited to 'doc')
-rw-r--r--doc/Utf.313
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/Utf.3 b/doc/Utf.3
index a61a18b..0299450 100644
--- a/doc/Utf.3
+++ b/doc/Utf.3
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: Utf.3,v 1.13.2.1 2003/07/18 16:56:24 dgp Exp $
+'\" RCS: @(#) $Id: Utf.3,v 1.13.2.2 2003/07/18 22:15:45 dkf Exp $
'\"
.so man.macros
.TH Utf 3 "8.1" Tcl "Tcl Library Procedures"
@@ -224,11 +224,14 @@ considered part of the UTF-8 string.
Given \fIsrc\fR, a pointer to some location in a UTF-8 string,
\fBTcl_UtfNext\fR returns a pointer to the next UTF-8 character in the
string. The caller must not ask for the next character after the last
-character in the string.
+character in the string if the string is not terminated by a null
+character.
.PP
-Given \fIsrc\fR, a pointer to some location in a UTF-8 string,
-\fBTcl_UtfPrev\fR returns a pointer to the previous UTF-8 character in the
-string. This function will not back up to a position before \fIstart\fR,
+Given \fIsrc\fR, a pointer to some location in a UTF-8 string (or to a
+null byte immediately following such a string), \fBTcl_UtfPrev\fR
+returns a pointer to the closest preceding byte that starts a UTF-8
+character.
+This function will not back up to a position before \fIstart\fR,
the start of the UTF-8 string. If \fIsrc\fR was already at \fIstart\fR, the
return value will be \fIstart\fR.
.PP