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!news1.google.com!newsread.com!news-xfer.newsread.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!193.111.200.220.MISMATCH!news-peer.gradwell.net!news-peer-lilac.gradwell.net!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada References: <1j92wa9843ylq.16j89wuqatbaj$.dlg@40tude.net> Subject: Re: String filtering Date: Tue, 27 Sep 2005 12:01:36 +0100 Organization: BAE SYSTEMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Message-ID: <433924a2$1_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Date: 27 Sep 2005 11:02:34 GMT NNTP-Posting-Host: 20.133.0.1 X-Trace: 1127818954 news.gradwell.net 38039 dnews/20.133.0.1 X-Complaints-To: news-abuse@gradwell.net Xref: g2news1.google.com comp.lang.ada:5184 Date: 2005-09-27T11:02:34+00:00 List-Id: 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). [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. Cheers -- Martin