home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!rutgers!ub!csn!stortek!sanitas!pg
- From: pg@sanitas.stortek.com (Paul Gilmartin)
- Newsgroups: comp.lang.rexx
- Subject: Re: Lower-case alphabetic set
- Message-ID: <1993Jan5.055753.19116@stortek.com>
- Date: 5 Jan 93 05:57:53 GMT
- References: <johnv.040n@acix.DIALix.oz.au>
- Sender: usenet@stortek.com
- Organization: Storage Technology Corp.
- Lines: 16
- Nntp-Posting-Host: sanitas.stortek.com
- X-Newsreader: TIN [version 1.1 PL7]
-
- John Verhoeven (johnv@acix.DIALix.oz.au) wrote:
- : David McAnally (acus02@ems13.corp.mot.com) wrote:
- : > TRANSLATE(instring,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'
- : > )
- :
- : Or slightly shorter...
- :
- : TRANSLATE(instring,XRANGE('a','z'),XRANGE('A','Z'))
-
- <Ahem> David's is correct; yours is wrong: you translate (possible)
- non-alphabetic characters among XRANGE('A','Z') to different, not
- necessarily non-alphabetic, characters among XRANGE('a','z'). The Rexx
- standard does not guarantee that XRANGE('A','Z') contains only alphabetic
- characters; nor even that it contains the same number of characters as
- XRANGE('a','z'); nor that the two don't overlap. I regularly use a
- dialect of Rexx for which not all these assumptions are true.
-