From: "KE" <koray.erkan@yahoo.com>
Subject: Re: Char type verification
Date: 15 Nov 2006 15:15:32 -0800
Date: 2006-11-15T15:15:32-08:00 [thread overview]
Message-ID: <1163632532.101867.123200@m73g2000cwd.googlegroups.com> (raw)
In-Reply-To: <1163627827.1632.10.camel@localhost.localdomain>
Dear George
Many thanks for your detailed answer. I'll most certainly make use of
your advice. However, if you look again, my question was not
- How can I verify whether a character is upper case
Nor was it
- Where, in the library hierarchies of Ada, can I find the character
handling routines
It was intended as "How do you translate this example to Ada? How would
you, as a presumably experienced Ada coder, do it? What hoops would we
jump through?
In other words, I wanted to see some Ada idioms in action to create a
transparent coding of this.
If you believe this simple exercise is not a productive use of your
time, though, I can understand.
Thanks again.
-- KE
Georg Bauhaus wrote:
[snip...]
>
> Or use Ada.Characters.Handling.Is_Upper(c), if you want
> to include characters outside 7bit ASCII.
>
> The C type char, which IIRC might start at -127 or
> at 0, has an implementation defined representation,
> and is a bit vague. The Ada standard frowns upon vague
> things, hence Ada's character type does not have
> theses issues. OTOH, for interfacing with C,
> look at the standard package Interfaces.C.
>
> For more general uses, there are standard packages
> Ada.Strings.Maps, Ada.Strings.Maps.Constants,
> Ada.Characters.Handling, and Ada.Characters.Latin_1.
> There are all kinds of character predicates and
> translation subprograms.
>
> There are variants for Wide_Character, covering
> the BMP of ISO 10646.
>
> Ada 2005, in addition supports Unicode and related
> subprograms.
next prev parent reply other threads:[~2006-11-15 23:15 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-15 22:00 Char type verification KE
2006-11-15 21:57 ` Georg Bauhaus
2006-11-15 23:15 ` KE [this message]
2006-11-16 4:48 ` Jeffrey R. Carter
2006-11-16 19:53 ` Adam Beneschan
2006-11-16 23:30 ` Yves Bailly
2006-11-17 0:48 ` Jeffrey R. Carter
2006-11-17 1:59 ` Adam Beneschan
2006-11-17 11:30 ` Stephen Leake
2006-11-17 15:33 ` KE
2006-11-17 15:10 ` Georg Bauhaus
2006-11-17 18:30 ` Ludovic Brenta
2006-11-18 2:29 ` Brian May
2006-11-17 19:45 ` Jeffrey R. Carter
[not found] ` <mQm7h.8782$ig4.3262@newsread2.news.pas.earthlink.net>
2006-11-17 19:56 ` Jeffrey R. Carter
[not found] ` <omz7h.222$1s6.165@newsread2.news.pas.earthlink.net>
2006-11-19 2:19 ` OT: French Idioms (was Re: Char type verification) Jeffrey R. Carter
2006-11-19 9:04 ` Dmitry A. Kazakov
2006-11-17 21:22 ` Char type verification Simon Wright
2006-11-17 23:59 ` Yves Bailly
2006-11-15 23:23 ` Simon Wright
2006-11-15 23:33 ` KE
2006-11-16 4:52 ` Jeffrey R. Carter
2006-11-15 23:36 ` Adam Beneschan
2006-11-15 23:55 ` KE
2006-11-16 4:54 ` Jeffrey R. Carter
2006-11-16 1:08 ` jimmaureenrogers
2006-11-16 1:45 ` KE
2006-11-16 2:15 ` jimmaureenrogers
2006-11-16 2:42 ` Steve Whalen
2006-11-16 9:36 ` Alex R. Mosteo
2006-11-16 7:02 ` KE
2006-11-16 17:04 ` Dmitry A. Kazakov
2006-11-16 22:43 ` Brian May
-- strict thread matches above, loose matches on Subject: below --
2006-11-16 16:01 Anh Vo
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox