Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ab58e782697cb9f904cc1a3be4fabedbe4c0ff67
Ticket: 654927ffffffffffffffffffffffffffffffffff
format %n
User & Date: nobody on 2002-12-17 00:10:47
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    (Greg Beauchesne, [email protected])
    
    This patch adds %n and %N specifiers to [format]. They
    work like the ones for sprintf(), except you give the
    name of a variable. %n is for character length, and %N
    is for byte length (should byte length ever be needed)
    
    Ex.
    format "%08x%n%08x%n" 5 varlen1 10 varlen2
    $varlen1 is now 8 and $varlen2 is now 16
    
    format "%s%N" "My string" bytelen
    ...has nearly the same effect as:
    set bytelen [string bytelength "My string"]
    
    A simple change, but it wasn't in there, or so the
    manpages told me.
    
    Made from tcl8.4.1.
    
  4. foundin changed to: "None"
  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: "16. Commands A-H"
  10. title changed to: "format %n"
  11. type changed to: "RFE"