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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,decb0c44a2cbd5dc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-30 08:33:06 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!dispose.news.demon.net!demon!btnet-peer0!btnet!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: How to delete charcters in a string? Date: Wed, 30 Jan 2002 10:04:06 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <6xM58.40153$uf7.3774162071@newssvr21.news.prodigy.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1012403048 22519 136.170.200.133 (30 Jan 2002 15:04:08 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 30 Jan 2002 15:04:08 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:19384 Date: 2002-01-30T15:04:08+00:00 List-Id: It seems like if all that is wanted is to get rid of some character contained in the string without actually decreasing the size of the string (just back padding with spaces or nulls or whatever...) then the best thing to do is use the package Ada.Strings.Fixed. From my quick review of it you have: Move Replace_Slice Overwrite Delete All of which could be used to remove a particular character. Does that address the original concern or was there a requirement to remove the array position as well? (No need to build the proverbial "Brick Outhouse" if this addresses the needs of an Ada newbie, eh? :-) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Dale Stanbrough" wrote in message news:dstanbro-836472.18481830012002@mec2.bigpond.net.au... > tmoran@acm.org wrote: > > > Yes you can do that, but then you are -not- deleting characters > from a string, you are deleting characters from a variable > length string abstraction which is contained in two variables > (Old_String, Last). This is essentially what Ada.Strings.Bounded > does of course. >