comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Simple library functions
Date: Fri, 13 Feb 2004 00:52:32 GMT
Date: 2004-02-13T00:52:32+00:00	[thread overview]
Message-ID: <kdVWb.1821$tL3.1324@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <19401efb.0402121137.2a20b681@posting.google.com>

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




  parent reply	other threads:[~2004-02-13  0:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-12 19:37 Simple library functions Harald Korneliussen
2004-02-12 19:50 ` Ed Falis
2004-02-12 19:54 ` Ed Falis
2004-02-12 20:54 ` Ludovic Brenta
2004-02-13  0:52 ` Jeffrey Carter [this message]
2004-02-13  7:18   ` Harald Korneliussen
2004-02-13 12:54     ` Harald Korneliussen
2004-02-13 21:36       ` Randy Brukardt
2004-02-13 21:55     ` Pascal Obry
2004-02-14 16:14       ` Harald Korneliussen
2004-02-13  1:21 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox