From: mheaney@ni.net (Matthew Heaney)
Subject: Re: Yet another efficiency question - To_Lower
Date: 1997/07/03
Date: 1997-07-03T00:00:00+00:00 [thread overview]
Message-ID: <mheaney-ya023680000307972329390001@news.ni.net> (raw)
In-Reply-To: 5pclke$203$1@goanna.cs.rmit.edu.au
In article <5pclke$203$1@goanna.cs.rmit.edu.au>, Dale Stanbrough
<dale@goanna.cs.rmit.edu.au> 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
<mailto:matthew_heaney@acm.org>
(818) 985-1271
next prev parent reply other threads:[~1997-07-03 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-02 0:00 Yet another efficiency question - To_Lower Dale Stanbrough
1997-07-03 0:00 ` Matthew Heaney [this message]
1997-07-04 0:00 ` Robert Dewar
1997-07-11 0:00 ` Dale Stanbrough
1997-07-11 0:00 ` Matthew Heaney
1997-07-15 0:00 ` Laurent Guerby
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox