comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: IBM 437 encoded String to UTF-16 Wide_String
Date: Wed, 28 Nov 2012 10:58:59 +0100
Date: 2012-11-28T10:58:59+01:00	[thread overview]
Message-ID: <1mefvxxar8vn3$.16pejjtgf8hhg.dlg@40tude.net> (raw)
In-Reply-To: 50b5dcd0$0$6581$9b4e6d93@newsspool3.arcor-online.net

On Wed, 28 Nov 2012 10:43:52 +0100, Georg Bauhaus wrote:

> On 28.11.12 09:52, Dmitry A. Kazakov wrote:
>> No. IMO the most convenient way would be to fix the language in order to
>> have Wide_Wide_String'Class of which String, Wide_String, Wide_Wide_String,
>> UTF8_String etc were members.
> 
> If there isn't anything special about {Wide_}Character,
> a Vector of Character might be an alternative,

No. When I mentioned Wide_Wide_String I meant an array of code points. The
logical view of *any* string type is array of code points. The only
difference between different string types is in the constraints put on the
code points. E.g. String has code points 0 to 255. IBM_437_String would
have a non-contiguous set of code points etc.

> though hated by haters of generics, I should think.

I don't see how generics are relevant here. All strings are arrays of code
points. They all belong to this class. No explicit conversions should be
needed between them.

> As a practical alternative, why not add a generalized
> std::valarray<type T = (<>)> to the language instead
> of fixing it?

No idea what this is supposed to mean.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-11-28  9:59 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-27 21:02 IBM 437 encoded String to UTF-16 Wide_String gautier_niouzes
2012-11-27 21:38 ` J-P. Rosen
2012-11-27 22:12 ` gautier_niouzes
2012-11-27 22:14 ` Dmitry A. Kazakov
2012-11-27 23:13   ` gautier_niouzes
2012-11-27 23:41 ` Vadim Godunko
2012-11-28  8:34   ` briot.emmanuel
2012-11-28  8:52     ` Dmitry A. Kazakov
2012-11-28  9:43       ` Georg Bauhaus
2012-11-28  9:58         ` Dmitry A. Kazakov [this message]
2012-11-28 11:31           ` Georg Bauhaus
2012-11-28 13:36             ` Dmitry A. Kazakov
2012-11-28 13:47               ` Georg Bauhaus
2012-11-28 14:23                 ` Dmitry A. Kazakov
2012-11-28 17:35                   ` Georg Bauhaus
2012-11-28 18:00                     ` Dmitry A. Kazakov
2012-11-29  9:51                       ` Georg Bauhaus
2012-11-29 10:52                         ` Dmitry A. Kazakov
2012-11-29 14:05                           ` Georg Bauhaus
2012-11-29 21:03                             ` Dmitry A. Kazakov
2012-11-29  3:18             ` Randy Brukardt
2012-11-28 13:51     ` gautier_niouzes
replies disabled

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