comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter C. Chapin" <pchapin@sover.net>
Subject: Re: Wide_[Wide_]Character
Date: Sat, 12 Jul 2008 07:27:07 -0400
Date: 2008-07-12T07:27:07-04:00	[thread overview]
Message-ID: <4878950d$0$25515$4d3efbfe@news.sover.net> (raw)
In-Reply-To: <MrNoSpam-90C89A.21000512072008@news-server.bigpond.net.au>

Dale Stanbrough wrote:

> I can't see any implication that would cause me to think 
> Wide_Wide_Character is definitely UCS-4 (and not UTF-16).


Well, section 3.5.2 (Character Types) in the Ada 2005 reference manual says:

   "The predefined type Wide_Wide_Character is a character type whose 
values correspond to the 2147483648 code positions of the ISO/IEC 
10646:2003 character set. Each of the graphic_characters has a 
corresponding character_literal in Wide_Wide_Character. The first 65536 
values of Wide_Wide_Character have the same character_literal or 
language-defined name as defined for Wide_Character."

I understand that this doesn't speak to the issue of encoding, but 
perhaps that is intended to be left unspecified. In any event it seems 
fairly clear that you should be able to store any of 2147483648 values 
in a single Wide_Wide_Character variable. Doesn't that mean 
Wide_Wide_Character needs to be (at least) 32 bits?

Peter



  reply	other threads:[~2008-07-12 11:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-12  7:44 Wide_[Wide_]Character Dale Stanbrough
2008-07-12  8:11 ` Wide_[Wide_]Character Dmitry A. Kazakov
2008-07-12 11:00   ` Wide_[Wide_]Character Dale Stanbrough
2008-07-12 11:27     ` Peter C. Chapin [this message]
2008-07-12 12:25       ` Wide_[Wide_]Character Georg Bauhaus
2008-07-15 12:37         ` Wide_[Wide_]Character Dale Stanbrough
2008-07-15 14:06           ` Wide_[Wide_]Character Georg Bauhaus
2008-07-12 20:56     ` Wide_[Wide_]Character Dmitry A. Kazakov
2008-07-12 10:11 ` Wide_[Wide_]Character anon
2008-07-12 10:58   ` Wide_[Wide_]Character Dale Stanbrough
2008-07-13  1:38     ` Wide_[Wide_]Character anon
2008-07-22 19:18 ` Wide_[Wide_]Character Adam Beneschan
replies disabled

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