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,93123f6108f30530 X-Google-Attributes: gid103376,public From: mheaney@ni.net (Matthew Heaney) Subject: Re: Yet another efficiency question - To_Lower Date: 1997/07/03 Message-ID: #1/1 X-Deja-AN: 254465856 Distribution: world References: <5pclke$203$1@goanna.cs.rmit.edu.au> Organization: Estormza Software Newsgroups: comp.lang.ada Date: 1997-07-03T00:00:00+00:00 List-Id: In article <5pclke$203$1@goanna.cs.rmit.edu.au>, Dale Stanbrough wrote: >I was wondering if the a procedure > > procedure To_Lower (Item : in out String); > >would be any more efficient for performing To_Lower operations >than the equivalent function in Ada.Characters.Handling, for when >a string is modified in place, i.e. > > Some_String : String (1..Size); > > Some_String := Ada.Characters.Handling.To_Lower (Some_String); It would seem that having procedure forms would have been a good idea; I don't know why they were omitted, nor does the AARM say either. However, I think you can do what you want using the procedure form of Translate in package Ada.Strings.Fixed. -------------------------------------------------------------------- Matthew Heaney Software Development Consultant (818) 985-1271