Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Misleading [string map] doc

Closed / Fixed1048005fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-10-15 19:52:02
The specification is as follows:

string map ?-nocase? charMap string

Replaces characters in string based on the  key-value 
pairs  in charMap. 

Both the use of the argument name 'charMap' and the
explanation would seem to mean that the map is for
mapping single characters, whereas in actual fact it is
mapping complete strings.
dkfplain2004-10-26 05:11:48
Logged In: YES 
user_id=79902

Fixed in HEAD
dgpplain2004-10-27 00:10:19
Logged In: YES 
user_id=80530


A backport of this, and other
improvements to string.n, for
the 8.4.8 release is worth considering.
dkfplain2004-10-27 16:38:10
Logged In: YES 
user_id=79902

Reopened to remind me to finish the doc backporting
dkfplain2004-10-27 22:30:24
Logged In: YES 
user_id=79902

Tcl docs (section n) backported
Log in (anonymous is fine) to add a comment.