Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a6664c346cde3d5ded5d250e8f20114c45a177fb
Ticket: 218805ffffffffffffffffffffffffffffffffff
table/proc use in regsub
User & Date: nobody on 2000-10-26 01:05:45
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2175 RFE
    Version: 8.0p2
    SubmitDate: '1999-06-03'
    LastModified: '1999-08-06'
    Severity: LOW
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Other
    OSVersion: NetBSD-1.3.3/i386
    Machine: NA
    FixedDate: '1999-08-06'
    FixedInVersion: 8.1.1
    ClosedDate: '2000-10-25'
    
    
    Name:
    Hume Smith
    
    DesiredBehavior:
    I'm often using regsub to do encodings and decoding, such as MIME
        quoted-printable or URI %.  I seem to get the best speed by using regexp
        to protect \ $ and [, using it again to insert either $DEC(\&) or [foo
        {\&}], then running the result through subst.  It gets kind of icky.
        
        How hard would it be to add, say, -eval and -table switches, where the
        substitution pattern becomes an array name for -table and the match is
        replaced with the mapping from the array, and for -eval the substitution
        argument is the usual list which gets the match tacked on and evaluated
        (in the same context as the regsub)?  Any interest in something like
        that?
    
    
    
    This type of feature was added as [string map] in 8.1.1. 
    -- 08/06/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0p2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "table/proc use in regsub"
  11. type changed to: "RFE"