Re: String filtering
- From: "Jeffrey R. Carter" <spam@xxxxxxxx>
- Date: Tue, 27 Sep 2005 17:47:56 GMT
David Trudgett wrote:
It seems odd to do this:
New_Str : Unbounded_String
:= To_Unbounded_String(Count(Str, Alphanumeric_Set));
if you're also going to do this:
New_Str := To_Unbounded_String("");
Append(New_Str, Element(Str, Char));
If you allocate the expected length (and not overwrite that with a null string), then you can use Replace_Element.
Is there some reason you're not doing this in place, using Delete? Is there some reason you're not doing this when you create the original string?
-- Jeff Carter "You tiny-brained wipers of other people's bottoms!" Monty Python & the Holy Grail 18 .
- Follow-Ups:
- Re: String filtering
- From: David Trudgett
- Re: String filtering
- References:
- String filtering
- From: David Trudgett
- Re: String filtering
- From: David Trudgett
- String filtering
- Prev by Date: Re: Code completion in ada IDE's
- Next by Date: Re: String filtering
- Previous by thread: Re: String filtering
- Next by thread: Re: String filtering
- Index(es):
Relevant Pages
|