Skip to content
Tcl Source Code View Ticket
Login

View Ticket

A 'tr'-like byte-mapping primitive.

Closed / Fixed218585ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:02:45
OriginalBugID: 1335 RFE
Version: 8.0.4
SubmitDate: '1999-03-02'
LastModified: '1999-08-06'
Severity: SER
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: Other
Machine: NA
FixedDate: '1999-08-06'
FixedInVersion: 8.1.1
ClosedDate: '2000-10-25'


Name:
Alexandre FERRIEUX

DesiredBehavior:
    Very often, I miss in Tcl the presence of a string-manipulation primitve
    like
    the UNIX command 'tr': byte-per-byte mapping. Granted, it is possible to
    implement it in Tcl, (with series of [regsub]), but it is not as
    efficient as it could be. Proposed syntax: [string map {ABCD} {EFGH}
    $s].
    




This is provided by the string map command. 
-- 08/06/1999 hobbs
welch Closed ticket [218585ffff]. [History diff]2000-10-26 08:25:09
dgp Open ticket [218585ffff]. [History diff]2001-04-16 23:16:26
dgp Closed ticket [218585ffff]. [History diff]2001-04-16 23:17:36
Log in (anonymous is fine) to add a comment.