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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,564a91823edb719c X-Google-Attributes: gid103376,public From: "James S. Rogers" Subject: Re: parsing a string Date: 2000/01/15 Message-ID: <85q63n$ese$1@bgtnsc01.worldnet.att.net>#1/1 X-Deja-AN: 572997958 References: <388095E5.6BF46237@cstc.org> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc01.worldnet.att.net 947952567 15246 12.74.129.100 (15 Jan 2000 16:09:27 GMT) Organization: AT&T WorldNet Services NNTP-Posting-Date: 15 Jan 2000 16:09:27 GMT Newsgroups: comp.lang.ada Date: 2000-01-15T16:09:27+00:00 List-Id: Paolo M. Pumilia wrote in message <388095E5.6BF46237@cstc.org>... >I am rather new to Ada programming. A hint would be useful to quickly >translate a procedure >that i am used to use in fortran programs. >How to split a string (or unbounded string) into a character array, >using blanks as separators? There are a lot of ways to do this. The easiest is to use the package Ada.Strings.Fixed. For this question you will want to use the Index function. It will return the index of the first occurance of the pattern you want to find. Simply use string slices after that, repeatedly passing the slices to the Index function, to parse through the entire original string. Jim Rogers Colorado Springs, Colorado