comp.lang.ada
 help / color / mirror / Atom feed
* wide character
@ 1999-10-29  0:00 Bernhard Rumpler
  1999-10-30  0:00 ` Florian Weimer
  1999-10-30  0:00 ` David C. Hoos, Sr.
  0 siblings, 2 replies; 4+ messages in thread
From: Bernhard Rumpler @ 1999-10-29  0:00 UTC (permalink / raw)


how can I get a wide character for an 'and-sign' (ISO 10646: 22c0)?
(i need to assign it to a string afterwards)


thanks,
Bernhard
-- 
Bernhard Rumpler  <mailto:rumpler@eunet.at>
http://www.auto.tuwien.ac.at/~rumpler




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: wide character
  1999-10-29  0:00 wide character Bernhard Rumpler
  1999-10-30  0:00 ` Florian Weimer
@ 1999-10-30  0:00 ` David C. Hoos, Sr.
  1 sibling, 0 replies; 4+ messages in thread
From: David C. Hoos, Sr. @ 1999-10-30  0:00 UTC (permalink / raw)



Bernhard Rumpler <rumpler@eunet.at> wrote in message
news:3819EA39.60B85317@eunet.at...
> how can I get a wide character for an 'and-sign' (ISO 10646: 22c0)?
> (i need to assign it to a string afterwards)
>
Wide_Ampersand : constant Wide_Character := Wide_Character'('&');







^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: wide character
  1999-10-29  0:00 wide character Bernhard Rumpler
@ 1999-10-30  0:00 ` Florian Weimer
  1999-10-31  0:00   ` Robert Dewar
  1999-10-30  0:00 ` David C. Hoos, Sr.
  1 sibling, 1 reply; 4+ messages in thread
From: Florian Weimer @ 1999-10-30  0:00 UTC (permalink / raw)


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 := '⋀';
\f
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#);




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: wide character
  1999-10-30  0:00 ` Florian Weimer
@ 1999-10-31  0:00   ` Robert Dewar
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Dewar @ 1999-10-31  0:00 UTC (permalink / raw)


[-- 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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-10-31  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-29  0:00 wide character Bernhard Rumpler
1999-10-30  0:00 ` Florian Weimer
1999-10-31  0:00   ` Robert Dewar
1999-10-30  0:00 ` David C. Hoos, Sr.

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