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,18f7cf743c6dec5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-22 06:49:34 PST Path: supernews.google.com!sn-xit-02!supernews.com!204.127.161.2.MISMATCH!wn2feed!wn1feed!worldnet.att.net!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed.cwix.com!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Strings Message-ID: References: <3A4362BD.8E156868@vdu.org> Organization: LJK Software Date: 22 Dec 2000 09:49:30 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 977496573 216.44.122.34 (Fri, 22 Dec 2000 14:49:33 GMT) NNTP-Posting-Date: Fri, 22 Dec 2000 14:49:33 GMT Xref: supernews.google.com comp.lang.ada:3364 Date: 2000-12-22T09:49:30-05:00 List-Id: So what did you find wrong with Bounded Strings in Ada95 ? In article <3A4362BD.8E156868@vdu.org>, Jef Kelmo 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 ==============================================================================