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,21dfd26d3cb23d48 X-Google-Attributes: gid103376,public From: mfb@mbunix.mitre.org (Michael F Brenner) Subject: Re: String Manipulation - Help Needed Date: 1998/04/06 Message-ID: <6gat22$dh5@top.mitre.org>#1/1 X-Deja-AN: 341381015 References: Organization: The MITRE Corporation, Bedford Mass. Newsgroups: comp.lang.ada Date: 1998-04-06T00:00:00+00:00 List-Id: From: Howard Davies \-[1] Howard Davies reports an Ada error > ... remove all spaces from a string ... > My 600 page Ada book just says that > this requies advanced packages that > are beyond the scope of the book. It could be that you have misread the book, or it could be that the book actually says this. If the book actually says this, could you please post the exact sentence, page number, book name, author, and publisher, so I can request it to be fixed. Howard > I have a sentence stored in a string and > I need > to remove all spaces and punctuation from the string. An Ada string is an array of characters. Once it is allocated with a given length, it behaves a lot like arrays of characters in other languages, except that is has a FIRST and LAST column number which are of type POSITIVE. So, you can remove the spaces and punctuation with a loop just like you would in C, Pascal, Java, FORTRAN, awk, perl, SETL, ALGOL, EPSILON for the BESM-6, BASIC, etc. If your real question is that you do not know how to program this loop, please repost here and say so, and I will show you to to program it. Mike Brenner