From: Per Sandberg <prsa@cntw.com>
Subject: Re: End of a string????
Date: 2000/10/13
Date: 2000-10-13T00:00:00+00:00 [thread overview]
Message-ID: <39E6F59F.B712234B@cntw.com> (raw)
In-Reply-To: MPG.144cf9c2da936cef98968d@news.prodigy.net
If your construct is
procedure foo( s : string) is ...
And you want to know the last char of the string the answer is
s'last
The first is:
s'first
The length is:
s'length
and finaly if you want to loop over it, the loop construct is
for index in s'range loop
..
..
end loop;
This is if you are working with the basic string-type in Ada.
/Per Sandberg
next prev parent reply other threads:[~2000-10-13 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-10 0:00 End of a string???? Ryuji Yokoyama
2000-10-10 0:00 ` Ted Dennison
2000-10-10 0:00 ` tmoran
2000-10-13 0:00 ` Per Sandberg [this message]
2000-10-13 0:00 ` Wes Groleau
2000-10-13 0:00 ` David C. Hoos, Sr.
2000-10-14 0:00 ` Wes Groleau
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox