From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Range types
Date: Sun, 21 Oct 2007 20:06:15 -0400
Date: 2007-10-21T20:06:15-04:00 [thread overview]
Message-ID: <wcczlycm2rs.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 471BC497.5060601@gmail.com
Christos Chryssochoidis <C.Chryssochoidis@gmail.com> writes:
> I would like to define a subtype of Wide_Character for a program that
> processes (unicode) text. This type would represent the Greek
> letters. Greek letters in Unicode, with all their diacritics, are
> located in two separate ranges: 0370 - 03D7 and 1F00 - 1FFF.
That's a reasonable thing to want, but Ada doesn't support that directly
-- you have to program it yourself.
>... That's 360
> characters to write in an enumeration... Since gaps are not allowed in
> ranges, I 'm thinking instead of defining such a type, to define a
> function that would accept a Wide_Character as argument and return a
> boolean value indicating whether the given Wide_Character falls in the
> ranges of the Greek characters.
Right. And perhaps a conversion function that converts from
[Wide_?]Wide_Character to Greek_Letter, and raises an exception if it's
not a greek letter.
- Bob
next prev parent reply other threads:[~2007-10-22 0:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-21 19:15 Range types Christos Chryssochoidis
2007-10-21 20:23 ` Niklas Holsti
2007-10-21 21:28 ` Christos Chryssochoidis
2007-10-22 0:06 ` Robert A Duff [this message]
2007-10-22 7:23 ` Jacob Sparre Andersen
2007-10-22 11:14 ` Christos Chryssochoidis
2007-10-22 12:33 ` Georg Bauhaus
2007-10-22 19:08 ` Christos Chryssochoidis
2007-10-23 23:52 ` anon
2007-10-24 12:57 ` Christos Chryssochoidis
2007-10-21 21:53 ` anon
2007-10-21 22:38 ` Christos Chryssochoidis
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox