From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: How to do case conversion?
Date: 1996/08/13
Date: 1996-08-13T00:00:00+00:00 [thread overview]
Message-ID: <EACHUS.96Aug12203205@spectre.mitre.org> (raw)
In-Reply-To: 320D5A34.41C67EA6@cs.cmu.edu
In article <320D5A34.41C67EA6@cs.cmu.edu> Mike Shen <mshen+@cs.cmu.edu> writes:
> I am trying to do case conversion in GNAT. Does anyone
> know a simple way to do it? I expected the Ada.Strings(.Maps)
> package to provide something for my purpose, but it doesn't.
Others have posted the right place to look. However, if you are
dealing with multi-lingual or non-Latin1 text be warned.
The "correct" mapping for ISO Latin 1, which is what you should
get, may not be what you want. In particular PC-Compatible machines,
Macintoshes, and Unix machines do not use Latin1 by default. (The
Amiga I am typing this on does. ;-)
The multilingual problems can arise either due to use of say
Latin2, or be more subtle. For instance, the correct upper/lower case
mapping for e-acute in French is locale specific.
All this is why the facilities for making your own maps are there.
--
Robert I. Eachus
with Standard_Disclaimer;
use Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...
next prev parent reply other threads:[~1996-08-13 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-10 0:00 How to do case conversion? Mike Shen
1996-08-11 0:00 ` Robert Dewar
1996-08-12 0:00 ` Robert A Duff
1996-08-13 0:00 ` Jon S Anthony
1996-08-11 0:00 ` David C. Hoos, Sr.
1996-08-11 0:00 ` Robert Dewar
1996-08-13 0:00 ` Robert I. Eachus [this message]
1996-08-13 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox