From: bobduff@world.std.com (Robert A Duff)
Subject: Re: help: character to integer
Date: 1996/10/02
Date: 1996-10-02T00:00:00+00:00 [thread overview]
Message-ID: <Dyo60D.n4H@world.std.com> (raw)
In-Reply-To: 3252BEC8.529E@lmco.com
In article <3252BEC8.529E@lmco.com>,
George Haddad <george.haddad@lmco.com> wrote:
> Forgive my ignorance, but is there any guarantee that
>Character'POS('X') = {ASCII code for 'X'}?
Yes, that is guaranteed.
>... Especially now that Ada uses
>ISO Latin-1 (or whatever the standard actually calls for). Are ASCII
>and Latin-1 two names for the same standard?
No, but the 128 Ascii characters are the same as the first 128 Latin-1
characters. Ascii has 128 characters, and Latin-1 has 256. So, in
changing from Ascii to Latin-1 (Ada 83 to Ada 95), you're just adding
128 more characters. The old characters still have the same internal
codes.
And Ada 95 also supports the 16-bit Unicode character set
(i.e. Wide_Character). The first 256 characters of Unicode are the same
as the Latin-1 character set.
- Bob
next prev parent reply other threads:[~1996-10-02 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-01 0:00 help: character to integer Eric Anthony Spear
1996-10-02 0:00 ` Richard A. O'Keefe
1996-10-02 0:00 ` George Haddad
1996-10-02 0:00 ` Robert A Duff [this message]
1996-10-02 0:00 ` David C. Hoos, Sr.
1996-10-05 0:00 ` Robert Dewar
1996-10-07 0:00 ` the term "pound sign" (was: help: character to integer) Adam Beneschan
1996-10-09 0:00 ` Michael Feldman
1996-10-09 0:00 ` Robert Dewar
1996-10-09 0:00 ` Michael Feldman
1996-10-10 0:00 ` Richard Kenner
1996-10-10 0:00 ` Adam Beneschan
1996-10-11 0:00 ` Robert I. Eachus
1996-10-11 0:00 ` Robert Dewar
1996-10-02 0:00 ` help: character to integer Dave Marshall
1996-10-07 0:00 ` Paul Tongue
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox