jch@hollie.rdg.dec.com (John Haxby) (05/07/91)
[ I am reposting this because a number of sites do not yet know that comp.lang.clu is now unmoderated. If you do NOT get this article twice, please ask your news manager to fix the active file. - Matti Jokinen, ex-moderator ] In article <42526@netnews.upenn.edu>, alas@eniac.seas.upenn.edu (David J. Alas) writes: |> Just a quick question about CLU. I'm comparing strings but I want to do |> so in a manner that is case insensitive. For example, I want the boolean |> string$equal ("CLU","clu") |> to yield true (instead of false). Any help would be appreciated. There are a selection of ways, it depends what you are doing. Sometimes it is appropriate to do string$equal ("clu", "CLU") cor string$equal ("clu", "clu") Sometimes it is appropriate to convert to upper or lower case before comparing, eg string$equal (supper ("clu"), "CLU") The way ted does case-indepentent searches is interesting, it uses _bytevec$nc_indexv and it makes use of _cvt [_bytevec, string]() which is horrible :-) -- John Haxby, Definitively Wrong. Digital <jch@wessex.rdg.dec.com> Reading, England <...!ukc!wessex!jch> ---------------------------------------------------------------- The opinions expressed herein are my own, not my employers.