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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60973b026c6e423d X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: help: character to integer Date: 1996/10/02 Message-ID: #1/1 X-Deja-AN: 186787644 references: <52s2pl$18l@dailyplanet.wam.umd.edu> <52t8la$2l8@goanna.cs.rmit.edu.au> <3252BEC8.529E@lmco.com> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-10-02T00:00:00+00:00 List-Id: In article <3252BEC8.529E@lmco.com>, George Haddad 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