summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-25 22:11:05 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-25 22:11:05 (GMT)
commit638940015d9a4ae55ba8d130a78c4e662655a6fb (patch)
tree0e8937b7fd2a3b5d18b5de69de4281c9bc7b96cb /doc
parentcc0d7ee19970bbd25753a4076ed5d0a4b44ff68d (diff)
downloadtcl-638940015d9a4ae55ba8d130a78c4e662655a6fb.zip
tcl-638940015d9a4ae55ba8d130a78c4e662655a6fb.tar.gz
tcl-638940015d9a4ae55ba8d130a78c4e662655a6fb.tar.bz2
Clarify [string map] docs to remove char/string ambiguity. [Bug 1048005]
Diffstat (limited to 'doc')
-rw-r--r--doc/string.n8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/string.n b/doc/string.n
index ff331b4..0bfe19b 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.21 2004/08/24 08:59:54 dkf Exp $
+'\" RCS: @(#) $Id: string.n,v 1.22 2004/10/25 22:11:11 dkf Exp $
'\"
.so man.macros
.TH string n 8.1 Tcl "Tcl Built-In Commands"
@@ -178,9 +178,9 @@ number of bytes used to store the string. If the object is a
ByteArray object (such as those returned from reading a binary encoded
channel), then this will return the actual byte length of the object.
.TP
-\fBstring map\fR ?\fB\-nocase\fR? \fIcharMap string\fR
-Replaces characters in \fIstring\fR based on the key-value pairs in
-\fIcharMap\fR. \fIcharMap\fR is a list of \fIkey value key value ...\fR
+\fBstring map\fR ?\fB\-nocase\fR? \fImapping string\fR
+Replaces substrings in \fIstring\fR based on the key-value pairs in
+\fImapping\fR. \fImapping\fR is a list of \fIkey value key value ...\fR
as in the form returned by \fBarray get\fR. Each instance of a
key in the string will be replaced with its corresponding value. If
\fB\-nocase\fR is specified, then matching is done without regard to