comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Persson" <spam-away@nowhere.nil>
Subject: String handling and character encodings
Date: Fri, 24 Sep 2004 22:14:27 GMT
Date: 2004-09-24T22:14:27+00:00	[thread overview]
Message-ID: <7%05d.4074$d5.31975@newsb.telia.net> (raw)
In-Reply-To: <9g87l018jg6p8q7vi6ttbdvrelt3ohrpfo@4ax.com>

Fionn mac Cuimhaill wrote:

> 5. Various extensions need to be done to character string handling.
> Gwindows tries to hide the difference between  character
> representation among the various versions of Windows by defining a
> GString to be composed of either ordinary or wide characters as
> needed, and likewise tries to hide the differences between various
> Windows API procedures and functions that use string arguments. This
> hiding philosophy in not completely implemented and  I still need to
> use a variety of Ada system packages that have both ordinary and
> wide-character versions. (Typically the wide versions, as I do all of
> my development on Windows 2K and XP)

If you're planning big extensions to the string handling, you may want 
to have a look at how I have tried to solve the character encoding 
problem in my EAstrings library, which is part of AdaCL. EAstrings keeps 
track of how each string is encoded and transcodes automatically when 
necessary. (The strings are "encoding-aware".) EAstrings doesn't just 
hide the difference between String and Wide_String. It handles all the 
encodings that the operating system knows about.

You can see the code in its current state at 
http://cvs.sourceforge.net/viewcvs.py/adacl/adacl/Include/ (the 
adacl-eastrings* files). It works on Gnu-based systems (and maybe some 
other unixoids if they have the Iconv functions). A Windows port is on 
the to-do list. (Speaking of which, I could use some help from a Windows 
programmer.)

-- 
Björn Persson                              PGP key A88682FD
                    omb jor ers @sv ge.
                    r o.b n.p son eri nu




  reply	other threads:[~2004-09-24 22:14 UTC|newest]

Thread overview: 110+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-23  1:44 GWindows and David Botton Fionn mac Cuimhaill
2004-09-23  2:51 ` stephane richard
2004-09-24  1:08   ` Stephen Leake
2004-09-24  1:14     ` stephane richard
2004-09-24 16:26     ` Matthew Heaney
2004-09-25 12:19       ` Stephen Leake
2004-09-26 13:22       ` Craig Carey
2004-09-24  0:35 ` Stephen Leake
2004-09-24  3:38   ` Randy Brukardt
2004-09-24  5:41     ` Martin Dowie
2004-09-24 10:37     ` stephane richard
2004-09-25 12:06       ` Stephen Leake
2004-09-27 20:59         ` Randy Brukardt
2004-09-28 17:47           ` Pascal Obry
2004-09-28 18:25             ` stephane richard
2004-10-03 17:04               ` David Botton
2004-10-03 16:32         ` David Botton
2004-10-03 17:59           ` Marius Amado Alves
2004-10-03 19:32             ` Ludovic Brenta
2004-10-03 20:21               ` Jerry van Dijk
2004-10-04 19:13               ` tmoran
2004-10-05  0:54                 ` David Botton
2004-10-05  1:23                   ` David Botton
2004-10-05  1:27                   ` Stephen Leake
2004-10-05  3:39                     ` David Botton
2004-10-05 23:20                   ` Randy Brukardt
2004-10-03 19:24           ` Jerry van Dijk
2004-10-04  2:06           ` Stephen Leake
2004-10-04 13:23             ` David Botton
2004-10-04 13:43             ` David Botton
2004-09-24 17:00     ` Cesar Rabak
2004-09-24  5:45   ` Fionn mac Cuimhaill
2004-09-24 22:14     ` Björn Persson [this message]
2004-09-25 12:01     ` Stephen Leake
2004-09-26 16:21       ` Fionn mac Cuimhaill
2004-10-03 16:37         ` David Botton
2004-09-26 21:57     ` Stephen McNeill
2004-09-26 22:08       ` tmoran
2004-09-27  6:13       ` Fionn mac Cuimhaill
2004-09-27  7:30         ` GWindows license (Was: GWindows and David Botton) Jacob Sparre Andersen
2004-09-27 12:31         ` GWindows and David Botton Georg Bauhaus
2004-09-27 21:23           ` Stephen McNeill
2004-10-03 16:40         ` David Botton
2004-10-04  1:57           ` Stephen Leake
2004-10-04 13:31             ` David Botton
2004-10-05  0:54               ` Stephen Leake
2004-10-05 15:39                 ` David Botton
2004-10-05 19:44                   ` tmoran
2004-10-05 21:33                     ` David Botton
2004-10-05 22:13                       ` stephane richard
2004-10-06 21:17                       ` tmoran
2004-10-05 22:40                   ` Stephen Leake
2004-10-05 23:28                     ` Randy Brukardt
2004-10-06  3:50                       ` David Botton
2004-10-06  3:46                     ` David Botton
     [not found]           ` <ullenfdo8.fsf@acm.org>
2004-10-04 12:46             ` Stephen Leake
2004-10-04 23:13               ` Brian May
2004-10-04 23:45                 ` stephane richard
2004-10-05 17:52                   ` Ludovic Brenta
2004-10-05 18:08                     ` Chris Humphries
2004-10-05 18:24                       ` Ludovic Brenta
2004-10-05 19:07                         ` Pascal Obry
2004-10-05 20:27                           ` SourceForge, CVS and revision control systems (was: GWindows and David Botton) Ludovic Brenta
2004-10-05 20:54                             ` Pascal Obry
2004-10-05 22:43                         ` GWindows and David Botton Stephen Leake
2004-10-07 18:49                           ` Ludovic Brenta
2004-10-16  2:36                             ` Benjamin Ketcham
2004-10-16 13:22                               ` CVS front-ends Stephen Leake
2004-10-16 14:33                                 ` Matthew Heaney
2004-10-16 15:07                                   ` Pascal Obry
2004-10-16 15:56                                     ` Stephen Leake
2004-10-16 16:37                                       ` Pascal Obry
2004-10-19  2:48                           ` GWindows and David Botton Kaz Kylheku
2004-10-05  0:48                 ` Stephen Leake
2004-10-05  7:42                   ` Brian May
2004-10-05 22:16                     ` Stephen Leake
2004-10-06  8:48                       ` Pascal Obry
2004-10-06 18:56                         ` Marius Amado Alves
2004-10-06 20:07                           ` David Botton
2004-10-06 20:18                             ` David Botton
2004-10-06 21:25                               ` tmoran
2004-10-09  9:49                           ` Jerry van Dijk
2004-10-07  0:22                         ` Stephen Leake
2004-10-08  0:28                       ` Brian May
2004-10-06 20:08                   ` Samuel Tardieu
2004-10-08  0:36                     ` Brian May
2004-09-24 18:58   ` Pascal Obry
2004-09-24 20:14     ` Marius Amado Alves
2004-09-24 20:48       ` tmoran
2004-09-24 22:20       ` GTK Björn Persson
2004-09-24 22:22       ` GWindows and David Botton Georg Bauhaus
2004-09-25  2:34       ` Jeff C r e e.m
2004-09-25  6:03       ` Pascal Obry
2004-09-25 10:42         ` Marius Amado Alves
2004-09-25 11:38           ` Georg Bauhaus
2004-09-25 13:11           ` Ed Falis
2004-09-25 15:59             ` Jacob Sparre Andersen
2004-09-25 18:15               ` Ed Falis
     [not found]         ` <41554B8F.6040401@netcabo.pt>
2004-09-25 12:49           ` Stephen Leake
     [not found]           ` <uekkqfr96.fsf@acm.org>
2004-09-25 13:05             ` Marius Amado Alves
2004-09-25 11:46       ` Ludovic Brenta
2004-09-25 12:43     ` GtkAda vs Windex, Gwindows Stephen Leake
2004-10-04 17:11       ` Warren W. Gay VE3WWG
2004-10-04 21:11         ` Ludovic Brenta
2004-10-05 16:38           ` GtkAda Package Hierarchy (was ...vs Windex, Gwindows) Warren W. Gay VE3WWG
2004-10-05 16:56         ` GtkAda vs Windex, Gwindows Stephane Riviere
2004-10-05 17:09           ` stephane richard
2004-10-05 20:42             ` Warren W. Gay VE3WWG
2004-10-03 16:18     ` GWindows and David Botton David Botton
2004-10-03 16:03   ` David Botton
replies disabled

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