comp.lang.ada
 help / color / mirror / Atom feed
From: "Jean-Pierre Rosen" <rosen@adalog.fr>
Subject: Re: Some problems with string type(Exact String?)
Date: Thu, 7 Jun 2001 10:07:51 +0200
Date: 2001-06-07T10:07:51+02:00	[thread overview]
Message-ID: <9fnd1q$bii$1@s1.read.news.oleane.net> (raw)
In-Reply-To: whxT6.68591$%i7.51923767@news1.rdc1.sfba.home.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1115 bytes --]


<tmoran@acm.org> a �crit dans le message news: whxT6.68591$%i7.51923767@news1.rdc1.sfba.home.com...
> >not greater than the bounds of the array.  My first hunch on the way to
> >work with this strictness(or so it seems) would be keep count of the
> >number of elements (characters of a string, numbers, whatever) going into
> >the array, and then pad the rest of the array with with NULLs or something
>   In Barnes, look at the chapter "Predefined Library", section "Characters
> and strings" and you'll see Ada.Strings.Bounded (and Ada.Strings.Unbounded).
> Bounded strings essentially keep a "current length", along with the fixed
> length array.  There's no need then to pad with nulls or anything else.
>
Alternatively, you can use the Variable_String package that is available on Adalog's components page:
http://www.adalog.fr/compo2.htm

Note that this package is pure, which (unlike the other packages) makes it usable for distributed applications.
--
---------------------------------------------------------
           J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr







  reply	other threads:[~2001-06-07  8:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-07  2:18 Some problems with string type Valdes
2001-06-06 16:34 ` Philip Anderson
2001-06-06 20:29   ` Some problems with string type(Exact String?) McDoobie
2001-06-06 21:30     ` tmoran
2001-06-07  8:07       ` Jean-Pierre Rosen [this message]
2001-06-06 22:08     ` Marin David Condic
2001-06-07  6:48     ` Ada.Strings.Fixed procedure Move Petter Fryklund
2001-06-07  4:06   ` Some problems with string type Valdes
2001-06-07 13:20     ` Valdes Laurent
2001-06-06 17:49 ` tmoran
2001-06-07  4:07   ` Valdes
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox