Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand
From: Mike Tuxford (tuxfordNOSPAM_at_NORETURNearthlink.net)
Date: 04/27/04
- Next message: Mike Tuxford: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Previous message: ljb: "Printing on Windows extension: looking for interest/testers"
- In reply to: Bruce Hartweg: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Next in thread: Mike Tuxford: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Reply: Mike Tuxford: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 27 Apr 2004 02:11:29 GMT
Bruce Hartweg <bruce-news@hartweg.us> wrote:
:
:
:Mike Tuxford wrote:
:
:> Darren New <dnew@san.rr.com> wrote:
:> :Kevin Kenny wrote:
:> :> The *string* command supports tests for a number of Tcl's basic types,
:> :> for example, integers, doubles, and booleans. This TIP proposes adding
:> :> wide integers.
:> :
:> :Perhaps [string is wideint] might be a better name. For example, when I
:> :first looked at the title, I thought it would be testing for wide
:> :characters, i.e., outside the ASCII 7-bit range.
:> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:> Myself, I'd like one of those. Currently I am doing like this:
:>
:> scan $char %c num
:> if {$num>31 && $num<127} {
:>
:> or am I just missing something?
:>
:maybe
:
:string is ascii
:string is print
:string is control
Yeah, but doesn't fit my needs. If it fails the [if] then control
flows to:
} else {
switch -- $num {
2 { # ^B routine }
3 { # ^C routine }
...
-- _ _ ____ //\/\ike ||uxford tuxford@earthlink.net
- Next message: Mike Tuxford: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Previous message: ljb: "Printing on Windows extension: looking for interest/testers"
- In reply to: Bruce Hartweg: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Next in thread: Mike Tuxford: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Reply: Mike Tuxford: "Re: TIP #188: Add 'string is wide' to the 'string is' Subcommand"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|