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!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed.pacific.net.au!nasal.pacific.net.au!not-for-mail Newsgroups: comp.lang.ada Subject: Re: String filtering From: David Trudgett Organization: Very little? References: <1j92wa9843ylq.16j89wuqatbaj$.dlg@40tude.net> <433924a2$1_1@glkas0286.greenlnk.net> Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:Ro5LpnvyDRemMHv0r2tmZffXR2k= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 27 Sep 2005 21:22:03 +1000 NNTP-Posting-Host: 61.8.36.91 X-Complaints-To: news@pacific.net.au X-Trace: nasal.pacific.net.au 1127820400 61.8.36.91 (Tue, 27 Sep 2005 21:26:40 EST) NNTP-Posting-Date: Tue, 27 Sep 2005 21:26:40 EST Xref: g2news1.google.com comp.lang.ada:5187 Date: 2005-09-27T21:22:03+10:00 List-Id: "Martin Dowie" writes: > Dmitry A. Kazakov wrote: > [snip] >> with Strings.Maps.Constants; >> use Strings.Maps.Constants; >> >> -- use defined there Alphanumeric_Set > > Nope - that's not what the OP has defined - he wants the ASCII subset of > Alphanumeric_Set (no accents, etc). You're right! I couldn't find what Ada's definition of "alphanumeric" actually was, so I hoped it was the same as mine! Looks like it's back to the original solution. > > > > [snip] >>> New_Str := To_Unbounded_String(""); >> >> No need for that, it is initially an empty string. > > Nope - it's an uninitialized string. But I agree that it you've already > determined the size then there is no need for this as each character in > New_Str will be certain to be filled. Yeah, except I couldn't use "append" then. What would I use instead? Thanks David -- David Trudgett http://www.zeta.org.au/~wpower/ Capitalism is about sharing things in the same way that Tug-Of-War is about sharing the rope.