From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d17f61d1647df47d X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: converting lower case to upper case Date: 1995/04/06 Message-ID: #1/1 X-Deja-AN: 100939429 references: <3ls54b$hu@news1.delphi.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1995-04-06T00:00:00+00:00 List-Id: tmoran says: "function To_Upper(Item : in Character) return Character is Raise_It:constant array('a' .. 'z') of Character :="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; begin if Item in Raise_It'range then return Raise_It(Item); else return Item; end if; end To_Upper;" this is wrong, it handles only the lower part of the Ada character set, and not Latin-1 extended characters. It is really quite important in Ada 95 to abandon this familiar do-it-yourself-its-so-easy idiom for case convesion, and use the routines in Ada.Characters.Handling. This little bit of effort will be well paid off in future reuse of your code in internatational contexts.