Re: XML Strings in Ada

From: Björn Persson (spam-away_at_nowhere.nil)
Date: 12/12/04


Date: Sun, 12 Dec 2004 01:15:29 GMT

Robert C. Leif wrote:
> If any one wishes to see and use my code for noncommercial purposes,
> please email me.
[...]
> The sources of my Ada_Utilities will be made
> available under one of the new licenses that are derived or in the spirit of
> my Software Developers Cooperative License.

Well, my own purposes aren't commercial but my EAstrings library is
GMGPL, so maybe I shouldn't look too closely at your code then.

Anyway, one obvious difference is that your strings are bounded and mine
are unbounded. It's not clear from your specification snippet whether
the encoding is fixed at instantiation or can be changed for an
individual string. My strings can be transcoded at any time.

I wanted programs using EAstrings to be able to use all character
encodings that are available in the operating system, so I chose an
implementation where encodings are identified with names in Unix and
with numbers in Windows.

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


Relevant Pages

  • Re: System.WCh_Cnv
    ... encodings) are too entangled for my taste. ... for I in Str'Range loop ... I cannot do that with UTF-8 in strings. ... I prefer general solutions, like array interfaces. ...
    (comp.lang.ada)
  • Re: Discussion about transformation TSP to UniqueTSP
    ... set of strings that begin with a '1', ... I'm assuming reasonable encodings are a given. ... classes at issue are sets of languages, ...
    (comp.theory)
  • Re: Encoding/characterset/font family confusion
    ... between strings and texts is one that I have never encountered on the ... programs do translate encodings, and which don't. ... After reading through a few pages of UTF-8, ... Maybe when PHP6 is out, and debugged, and I switch my server to PHP6, ...
    (comp.lang.php)
  • Re: Python Unicode to String conversion
    ... unicode encode and decode, try using a mix of latin1 and utf8 ... encodings to figure out whats going on, ... All input data should be decoded from byte strings into unicode as early as possible. ...
    (comp.lang.python)