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,52b8231e55574793,start X-Google-Attributes: gid103376,public From: matthew_heaney@acm.org (Matthew Heaney) Subject: Re: String Manipulation - Help Needed Date: 1998/04/05 Message-ID: #1/1 X-Deja-AN: 341189140 Content-Transfer-Encoding: 8bit References: Content-Type: text/plain; charset=ISO-8859-1 Organization: Network Intensive Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-04-05T00:00:00+00:00 List-Id: In article , Howard Davies wrote: >Hi, >I have a sentence stored in a string and I need to remove all spaces and >punctuation from the string. >My 600 page Ada book just says that this requies advanced packages that >are beyond the scope of the book. >Can someone help me out? There are packages that come with the language to do what you want. The packages are Ada.Strings.Fixed Ada.Strings.Bounded Ada.Strings.Unbounded Ada.Strings.Maps Ada.Characters.Handling The Trim subprograms can remove whitespace from a string. Maybe you can make use of the character mapping functions too.