home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ames!agate!dog.ee.lbl.gov!hellgate.utah.edu!csn!stortek!LSTC2VM.stortek.com!MCMASTER
- From: MCMASTER@LSTC2VM.stortek.com (Jim McMaster)
- Subject: Re: Lower-case alphabetic set
- Message-ID: <16B4E7F50.MCMASTER@LSTC2VM.stortek.com>
- Sender: usenet@stortek.com
- Nntp-Posting-Host: lstc2vm.stortek.com
- Organization: StorageTek SW Engineering
- References: <1993Jan5.064658.4491@schbbs.mot.com>
- Date: Wed, 6 Jan 1993 16:03:11 GMT
- Lines: 24
-
- In article <1993Jan5.064658.4491@schbbs.mot.com>
- TCSAR03@waccvm.corp.mot.com (Germain Leutwyler) writes:
-
- >Hi,
- >
- >Here is another routine to translate each letter from uppercase to
- >lowercase. You may specify the characters that shouldn'tbe converted
- >in the verify function.
- >
- >Best regards,
- >Germain Leutwyler
- >
- >/* TRANSLATION OF CERTAIN CHARACTERS WITHIN STRING "ST" TO LOWERCASE */
- >ST=''
- >do P=1 to length(ST)
- > C=substr(ST,P,1)
- > if verify(C,'?!0123456789')/=0 then C=bitxor(C,' ')
- > ST=ST||C
- >end
-
- This works, but only for EBCDIC, and is much slower than the built-in
- translate function.
-
- Jim McMaster
-