From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen)
Subject: Re: Strings
Date: 22 Dec 2000 09:49:30 -0500
Date: 2000-12-22T09:49:30-05:00 [thread overview]
Message-ID: <mmQHDuHqW7eA@eisner.decus.org> (raw)
In-Reply-To: 3A4362BD.8E156868@vdu.org
So what did you find wrong with Bounded Strings in Ada95 ?
In article <3A4362BD.8E156868@vdu.org>, Jef Kelmo <jlk@vdu.org> writes:
> Hello,
>
> What I want is to figure how to get something like the C++ strings class,
> where I can have strings of various sizes, eventually building an array of
> strings. But I'm having trouble with a simple string itself. In C++, you have
> the string.length which goes to the null character, but from what I can
> figure, there is not the same thing in Ada. Is this true?
>
> Anyway, what I would like, as I mentioned, is to be able to create an
> array of strings that I can feed, after its creation, with data and be able to
> spit it back out to the screen with some simple way for it to understand the
> length of each string. I found the Get_Line(Input, String, Last) thing, but do
> I really have to keep track of that length for hundreds of strings?
>
> Thanks.
>
> Jef
>
> "Beard, Frank" wrote:
>
>> Jef,
>>
>> > I just want a usable string. How would I change the above code to do
>> > this? And could someone please point me to a site that gives actual,
>> > concrete examples of simple string use?
>>
>> While Ada.Strings.Bounded has some useful features, it goes a little beyond
>> "simple" strings.
>
--
==============================================================================
Great Inventors of our time: Al Gore -> Internet; Sun Microsystems -> Clusters
==============================================================================
next prev parent reply other threads:[~2000-12-22 14:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-21 21:09 Strings Beard, Frank
2000-12-22 14:19 ` Strings Jef Kelmo
2000-12-22 14:49 ` Larry Kilgallen [this message]
2000-12-22 16:35 ` Strings Marin David Condic
2000-12-23 21:04 ` Strings Georg Bauhaus
-- strict thread matches above, loose matches on Subject: below --
2000-12-21 17:45 Strings Jef Kelmo
2000-12-21 18:01 ` Strings Jef Kelmo
2000-12-21 18:47 ` Strings mark_lundquist
2000-12-21 18:47 ` Strings mark_lundquist
2000-12-21 23:31 ` Strings gdemont
2000-12-21 19:03 ` Strings David C. Hoos, Sr.
2000-05-27 0:00 Strings Karlene
2000-05-27 0:00 ` Strings MaggieJohn
2000-05-28 0:00 ` Strings Robert Dewar
2000-06-03 0:00 ` Strings Robert I. Eachus
2000-05-27 0:00 ` Strings Robert Dewar
2000-05-27 0:00 ` Strings Robert Dewar
2000-05-27 0:00 ` Strings David C. Hoos, Sr.
1995-01-25 15:08 Strings Ray Toal
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox