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-Thread: 103376,a0833bbed8752e1f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!irazu.switch.ch!switch.ch!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: variable lenght strings Date: Sun, 24 Oct 2004 17:39:28 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1861614.TWv5A9FgVL@linux1.krischik.com> <4178e979_1@baen1673807.greenlnk.net> <1195374.UMjBCk7lO1@linux1.krischik.com> NNTP-Posting-Host: host81-152-56-142.range81-152.btcentralplus.com X-Trace: hercules.btinternet.com 1098639568 8158 81.152.56.142 (24 Oct 2004 17:39:28 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sun, 24 Oct 2004 17:39:28 +0000 (UTC) X-RFC2646: Format=Flowed; Original X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Xref: g2news1.google.com comp.lang.ada:5676 Date: 2004-10-24T17:39:28+00:00 List-Id: "Martin Krischik" wrote in message news:1195374.UMjBCk7lO1@linux1.krischik.com... > Martin Dowie wrote: > >> Martin Krischik wrote: >>>> 1) Is it possible to use Get_Line with Unbounded and/or Bounded >>>> Strings? >>> >>> Well the Standart overlooked that one. However it is quite easy to >>> write your own - either a recursive solution for String or a loop >>> solution with Unbounded_String. >> >> Being added in Ada2005, see Ada.Text_IO.Unbounded_IO in >> http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-00301.TXT?rev=1.12 > > Cool. How will it handle a missing CR/LF at the end of file? The AI defines: function Get_Line (File : in File_Type) return Strings.Unbounded.Unbounded_String; Returns Strings.Unbounded.To_Unbounded_String(Text_IO.Get_Line(File));So, I'm guessing it will be consistant with the current Get_Line behaviour.-- Martin