From: mheaney@ni.net (Matthew Heaney)
Subject: Re: Unconstrained String Handling.
Date: 1997/07/10
Date: 1997-07-10T00:00:00+00:00 [thread overview]
Message-ID: <mheaney-ya023680001007972325030001@news.ni.net> (raw)
In-Reply-To: NMFtgKANl5uzYwNP@clanchy.demon.co.uk
In article <NMFtgKANl5uzYwNP@clanchy.demon.co.uk>, RC
<rc1@clanchy.demon.co.uk> wrote:
>Is there a portable way to handle data elements of type: string?
>
>(Any attributes which can be accessed for instance.)
>
>As for constant strings:
>
> line1: constant string := "Some text.";
>
>
>begin
> put_line (line1);
> put_line (line1'last);
>
>....
>
>
>
>procedure string_op (ip_text: IN STRING) is
>begin
> ?????
ip_text'First yields the index position of the first element of the actual
parameter.
ip_text'Last yields the last index position of the string.
ip_text'Range is shorthand for ip_text'First .. ip_text'Last.
ip_text'Length yields the length of the actual argument; it's the same
value as ip_text'last - ip_first + 1.
What are you trying to do, exactly?
--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271
next prev parent reply other threads:[~1997-07-10 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-03 0:00 Unconstrained String Handling RC
1997-07-03 0:00 ` Anonymous
1997-07-10 0:00 ` Matthew Heaney [this message]
1997-07-11 0:00 ` Anonymous
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox