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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2ac407a2a34565a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.132.69 with SMTP id os5mr3384087pbb.6.1330550519121; Wed, 29 Feb 2012 13:21:59 -0800 (PST) Path: h9ni24249pbe.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Array Help? Date: Wed, 29 Feb 2012 22:27:59 +0100 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <10615783-d4a9-4cbd-8971-53ba1100d6a0@b18g2000vbz.googlegroups.com> <17412419.40.1330534213855.JavaMail.geo-discussion-forums@vbva11> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 X-Trace: tigger.scc.uni-weimar.de 1330550519 12010 141.54.178.228 (29 Feb 2012 21:21:59 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Wed, 29 Feb 2012 21:21:59 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: Content-Type: TEXT/PLAIN; charset=US-ASCII Date: 2012-02-29T22:27:59+01:00 List-Id: On Wed, 29 Feb 2012, Jeffrey Carter wrote: > On 02/29/2012 12:45 PM, stefan-lucks@see-the.signature wrote: > > > > First := X'First; > > while First< X'Last and then X(First) = ' ' loop > > First := First + 1; > > end loop; > > return X(First .. X'Last); > > Ada.Strings.Fixed.Index_Non_Blank? That was just a simplified example for a common pattern. In that specific case, I would probably use Ada.Strings.Fixed.Trim(..., Left). -- ---- Stefan.Lucks (at) uni-weimar.de, University of Weimar, Germany ---- ------ I love the taste of Cryptanalysis in the morning! ------