summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorstanton <stanton>1999-05-04 02:57:54 (GMT)
committerstanton <stanton>1999-05-04 02:57:54 (GMT)
commitba038ecba199445b2f74cf0834ce258822ce5d6e (patch)
treef2e0f73961f829cecf16c8a2dc6fe78ef3006e70 /doc
parentf46a13245d6ed0be5a1de0604321ad773c4ec606 (diff)
downloadtcl-ba038ecba199445b2f74cf0834ce258822ce5d6e.zip
tcl-ba038ecba199445b2f74cf0834ce258822ce5d6e.tar.gz
tcl-ba038ecba199445b2f74cf0834ce258822ce5d6e.tar.bz2
* doc/string.n:
* tests/cmdMZ.test: * tests/string.test: * generic/tclCmdMZ.c (Tcl_StringObjCmd): Changed "string length" to avoid regenerating the string rep of a ByteArray object.
Diffstat (limited to 'doc')
-rw-r--r--doc/string.n12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/string.n b/doc/string.n
index 0071b32..81df8b0 100644
--- a/doc/string.n
+++ b/doc/string.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: string.n,v 1.4 1999/05/04 01:33:10 stanton Exp $
+'\" RCS: @(#) $Id: string.n,v 1.5 1999/05/04 02:57:54 stanton Exp $
'\"
.so man.macros
.TH string n 8.1 Tcl "Tcl Built-In Commands"
@@ -23,6 +23,10 @@ Performs one of several string operations, depending on \fIoption\fR.
The legal \fIoption\fRs (which may be abbreviated) are:
.VS 8.1
.TP
+\fBstring bytelength \fIstring\fR
+Returns a decimal string giving the number of bytes in the
+\fIstring\fR when represented as UTF-8.
+.TP
\fBstring compare \fIstring1 string2\fR ?\fIlength\fR?
.VE 8.1
Perform a character-by-character comparison of strings \fIstring1\fR and
@@ -70,11 +74,11 @@ follows:
The char specified at this numerical index
.IP \fBend\fR 10
The last char of the string.
-.IP \fBexpression\fR 10
+.IP \fIexpression\fR 10
A Tcl expression that returns a number.
-.IP \fBend[+-]expression\fR 10
+.IP \fBend[+-]\fIexpression\fR 10
The last char of the string plus or minus the number specified
-in the expression (ie: end-1).
+in the expression (e.g. \fBend-1\fR).
.RE
.VE 8.1
If \fIcharIndex\fR is less than 0 or greater than