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,a13657a6f67ac494 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-12 16:52:32 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Simple library functions References: <19401efb.0402121137.2a20b681@posting.google.com> In-Reply-To: <19401efb.0402121137.2a20b681@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 13 Feb 2004 00:52:32 GMT NNTP-Posting-Host: 63.184.104.214 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1076633552 63.184.104.214 (Thu, 12 Feb 2004 16:52:32 PST) NNTP-Posting-Date: Thu, 12 Feb 2004 16:52:32 PST Xref: archiver1.google.com comp.lang.ada:5504 Date: 2004-02-13T00:52:32+00:00 List-Id: Harald Korneliussen wrote: > One problem I keep running into is the lack of common, useful > utilities in the libraries that come with Gnat & Ada. One thing is > that I had to write my own tokenizer. That gave me the opporunity to > emulate the String.split() method in newer versions of Java, OK*. But > now I have to do an even simpler task, converting a string of digits > to an integer, and as far as I can see there is no function for this > in the standard libraries!? There's no function for that in the standard library because it's part of the language. Others have pointed out the 'Value attribute. I have no idea what String.split does in Java, but I suspect it's similar to Ada.Strings.(Fixed | Bounded | Unbounded).Find_Token. If not, you could look at www.adapower.com or www.adahome.com for Open_Token. -- Jeff Carter "I spun around, and there I was, face to face with a six-year-old kid. Well, I just threw my guns down and walked away. Little bastard shot me in the ass." Blazing Saddles 40