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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5c8805625bf2ecaa X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny02.POSTED!0f19ed38!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: Subject: Re: I wish I could ... X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: <4Qk2d.1078$Ez5.644@trndny02> Date: Thu, 16 Sep 2004 18:20:48 GMT NNTP-Posting-Host: 141.154.223.121 X-Complaints-To: abuse@verizon.net X-Trace: trndny02 1095358848 141.154.223.121 (Thu, 16 Sep 2004 14:20:48 EDT) NNTP-Posting-Date: Thu, 16 Sep 2004 14:20:48 EDT Xref: g2news1.google.com comp.lang.ada:3780 Date: 2004-09-16T18:20:48+00:00 List-Id: How about this: declare Direction_For : constant array ( Going_Type ) of Ada.Strings.Direction := ( Forward => Ada.Strings.Forward, Backward => Ada.Strings.Backward ); begin return Ada.Strings.Fixed.Index ( Source => Source.Reference( 1 .. Source.Last ), Mapping => String'( 1 => Space ), Going => Direction_For( Going ) ); end;