comp.lang.ada
 help / color / mirror / Atom feed
From: Adrien Plisson <aplisson-news@stochastique.net>
Subject: Re: Character set conversion
Date: Tue, 02 Aug 2005 11:18:08 +0200
Date: 2005-08-02T11:18:08+02:00	[thread overview]
Message-ID: <42ef398f$0$20821$ba620e4c@news.skynet.be> (raw)
In-Reply-To: <iYmdnRoHJrNCr3LfRVn-qA@comcast.com>

tmoran@acm.org wrote:
> Ada.Strings.Fixed.Translate

according to ARM95 A.4.3 §70:
"Returns the string S whose length is Source’Length and such that S(I) 
is the character to which Mapping maps the corresponding element of 
Source, for I in 1..Source’Length."

what happens if one character (but not all characters), represented as 
a single byte value in your source character set maps to a multibyte 
character (is it called surrogate ?) in your destination character set ?

(sorry, i'm not flaming, i really don't know how to handle this case 
using the standard)

-- 
rien



  reply	other threads:[~2005-08-02  9:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-02  7:57 Character set conversion Adaddict
2005-08-02  8:24 ` Adrien Plisson
2005-08-02  8:46 ` tmoran
2005-08-02  9:18   ` Adrien Plisson [this message]
2005-08-02  9:45 ` Dmitry A. Kazakov
2005-08-02 16:17 ` John B. Matthews
2005-08-02 16:47 ` Jeffrey Carter
2005-08-03  1:07   ` Adaddict
replies disabled

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