comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Convert wide_string to string (as the same byte array)
Date: Tue, 6 Mar 2012 07:54:49 -0800 (PST)
Date: 2012-03-06T07:54:49-08:00	[thread overview]
Message-ID: <5368448.8.1331049289886.JavaMail.geo-discussion-forums@pbbpr1> (raw)
In-Reply-To: <jj3r0r$653$1@munin.nbi.dk>

On Monday, March 5, 2012 5:58:48 PM UTC-8, Randy Brukardt wrote:
> 
> An alternative to Adam's solution would be to use the Ada2012 encoding 
> functions (A.4.11), specifically Ada.Strings.UTF_Encoding.Wide_Strings, and 
> use a UTF-8 encoding. That would be shorter, but not fixed length, so 
> whether that would work for you depends on the API you are feeding these 
> into.

This may seem like a dumb question, but does that preserve order?

                        -- Adam



  reply	other threads:[~2012-03-06 15:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-24 22:01 Convert wide_string to string (as the same byte array) Erich
2012-02-24 22:25 ` Adam Beneschan
2012-02-24 22:58   ` Erich
2012-03-06  1:58 ` Randy Brukardt
2012-03-06 15:54   ` Adam Beneschan [this message]
2012-03-07  1:04     ` Randy Brukardt
replies disabled

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