CarobNS::MBSCodec Class Reference

Multi-Byte String encoder and decoders according to a given or default locale. More...

#include <StringCodecs.hpp>

List of all members.

Public Member Functions

std::string encode (const std::wstring &) const throw (CodecException)
 Encodes the given string using the locale set in the constructor.
std::wstring decode (const std::string &) const throw (CodecException)
 Decodes the given string using the locale set in the constructor.
 MBSCodec ()
 Default constructor for the default converter, using user-defined locale (typically LANG, LC_etc).
 MBSCodec (const std::locale &locarg)
 Use locarg locale for conversions.
 MBSCodec (const char *locname) throw (CodecException)
 Use locale named locname for conversions.


Detailed Description

Multi-Byte String encoder and decoders according to a given or default locale.


Constructor & Destructor Documentation

CarobNS::MBSCodec::MBSCodec (  )  [inline]

Default constructor for the default converter, using user-defined locale (typically LANG, LC_etc).

If you want the C locale instead of this LANG-one use for instance this CTOR: MBSCodec(locale::classic()) or if you want the current (global) locale: MBSCodec(locale())

CarobNS::MBSCodec::MBSCodec ( const std::locale &  locarg  )  [inline]

Use locarg locale for conversions.

Parameters:
locarg locale to be used

CarobNS::MBSCodec::MBSCodec ( const char *  locname  )  throw (CodecException) [inline]

Use locale named locname for conversions.

Parameters:
locname name of the locale to be used


The documentation for this class was generated from the following file:
Generated on Tue Oct 24 09:05:38 2006 for Carob by  doxygen 1.5.0