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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8f802583e5c84fa X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.cs.univ-paris8.fr!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: String filtering Date: Wed, 28 Sep 2005 22:00:48 +0100 Organization: Pushface Message-ID: References: <1j92wa9843ylq.16j89wuqatbaj$.dlg@40tude.net> <433924a2$1_1@glkas0286.greenlnk.net> <43392732$1_1@glkas0286.greenlnk.net> <1jd30obyohnp6$.41tz3funikly.dlg@40tude.net> <43394a3e$1_1@glkas0286.greenlnk.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1127941248 8708 62.49.19.209 (28 Sep 2005 21:00:48 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 28 Sep 2005 21:00:48 +0000 (UTC) Cancel-Lock: sha1:6JDLDj8XVIX+5OyNHRKIUqN+DbQ= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:5254 Date: 2005-09-28T22:00:48+01:00 List-Id: David Trudgett writes: > Dest_Size : Natural := Count(Str, Alpha_Num_Space_Set); Dest_Size : constant Natural := Count(Str, Alpha_Num_Space_Set); > New_Str : Unbounded_String := Null_Unbounded_String; > Dest_Char : Natural := 0; It would be more like the uses in the standard IO libraries to call Dest_Char 'Last'. (I for one thought it would hold a character rather than an index to a character).