comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: wide character
Date: 1999/10/31
Date: 1999-10-31T00:00:00+00:00	[thread overview]
Message-ID: <7vhjh7$9gl$1@nnrp1.deja.com> (raw)
In-Reply-To: 87puxxvzeb.fsf@deneb.cygnus.argh.org

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

In article <87puxxvzeb.fsf@deneb.cygnus.argh.org>,
  Florian Weimer <fw@deneb.cygnus.argh.org> wrote:
> Bernhard Rumpler <rumpler@eunet.at> writes:
>
> > how can I get a wide character for an 'and-sign' (ISO 10646:
> > 22c0)?
> > (i need to assign it to a string afterwards)
>
> Big_Wedge : constant Wide_Character := '⠠';
>
> If your development system doesn't suppport Unicode, you'll
have to
> use something like this instead:
>
> Big_Wedge : constant Wide_Character :=  Wide_Character'Val
(16#22C0#);


All Ada systems must support the use of character literals
for all wide character values, including this one. However,
it is implementation dependent what the representation of
such character values is

(this is not surprising, ALL representation issues in Ada source
programs are implementation dependent, the standard has nothing
to say about the representation of source programs).

So you have to check your implementation. GNAT provides half
a dozen different encoding schemes (see GNAT users's guide)



Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~1999-10-31  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-29  0:00 wide character Bernhard Rumpler
1999-10-30  0:00 ` Florian Weimer
1999-10-31  0:00   ` Robert Dewar [this message]
1999-10-30  0:00 ` David C. Hoos, Sr.
replies disabled

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