Topic: Multibyte extensions to ANSI string class?


Author: kanze@gabi-soft.fr (J. Kanze)
Date: 1997/11/05
Raw View
Mike Ormsby <mto@xig.com> writes:

|>  This is a shot in the dark but has anyone worked on extensions to the
|>  ANSI string class to convert between various Asian character set
|>  formats? What I'm thinking of for example is you could populate a
|>  string with Japanese JIS encoded characters and then call a member
|>  function to get an EUC version. I thought I would ask before I go and
|>  reinvent the wheel...

Not in the string class, but...

If I understand it correctly, the basic intent is that internally,
wstring (and not string) be used for all string operations -- typically,
I would expect it to support Unicode (although this is definitly NOT
required by the standard).  Any conversion between the various formats
(to and from Unicode) occurs on input or output -- as specified by the
locale affected to the stream.  The program never sees anything but
Unicode.

--
James Kanze    +33 (0)1 39 23 84 71    mailto: kanze@gabi-soft.fr
GABI Software, 22 rue Jacques-Lemercier, 78000 Versailles, France
        I'm looking for a job -- Je recherche du travail
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: Mike Ormsby <mto@xig.com>
Date: 1997/11/04
Raw View
This is a shot in the dark but has anyone worked on extensions to the
ANSI string class to convert between various Asian character set
formats? What I'm thinking of for example is you could populate a
string with Japanese JIS encoded characters and then call a member
function to get an EUC version. I thought I would ask before I go and
reinvent the wheel...

Thanks in advance,
Mike
-------------------------+---------------------------------------------
Mike Ormsby              |  Xi Graphics
EMAIL:  mto@xig.com      |  1801 Broadway, Suite 1710, Denver, CO 80202
VOICE:  +1 303 298 7478  |  FAX:  +1 303 298 1406
        ext 213          |  WWW:  http://www.xig.com
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]