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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fff7eeabc7a7bc9c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-21 11:05:34 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-peer1.sprintlink.net!news-in-central.sprintlink.net!news.sprintlink.net!news.online-isp.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: String manupulation Date: Tue, 21 Aug 2001 13:04:27 -0500 Organization: On Line Exchange Sender: randybru@sdsl-64-7-4-91.dsl.chi.megapath.net Message-ID: <9lu7r2$3vp$1@news.online-isp.com> References: <9lt2pe$lrm$1@snipp.uninett.no> NNTP-Posting-Host: sdsl-64-7-4-91.dsl.chi.megapath.net X-Trace: news.online-isp.com 998417058 4089 64.7.4.91 (21 Aug 2001 18:04:18 GMT) X-Complaints-To: news@news.online-isp.com NNTP-Posting-Date: 21 Aug 2001 18:04:18 GMT X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 Xref: archiver1.google.com comp.lang.ada:12186 Date: 2001-08-21T18:04:18+00:00 List-Id: Reinert Korsnes wrote in message <9lt2pe$lrm$1@snipp.uninett.no>... >Hi, > >I just wondered if there is a simple/direct way (in Ada) to split >a string with words (for example "abc defg 2.56 hijklm") >into stings each containing one word ("abc", "defg", "2.56" and "hijklm") ? Look at Ada.Strings.Fixed.Find_Token (see RM A.4.3(68): http://www.adaic.com/standards/95lrm/html/RM-A-4-3.html) There are versions of this in Ada.Strings.Bounded and Ada.Strings.Unbounded as well. Randy Brukardt.