CarobNS::StaticCodecs Class Reference

The only purpose of this class is to prevent direct access to the private codecs fields, while still be able to inline the calls. More...

#include <StringCodecs.hpp>

List of all members.

Static Public Member Functions

static std::wstring fromASCII (const std::string &in) throw (CodecException)
 Converts ASCII "encoded" string to a wide string.
static std::wstring fromString (const std::string &in) throw (CodecException)
 Converts user's locale encoded string to a wide string
To be used for conversions of locale dependent strings, eg.
static std::string toString (const std::wstring &in) throw (CodecException)
 Converts a wide string to a user's locale encoded string.


Detailed Description

The only purpose of this class is to prevent direct access to the private codecs fields, while still be able to inline the calls.

Since the methods below rely on some static initialization, they should NOT be used at initialization time!


Member Function Documentation

static std::wstring CarobNS::StaticCodecs::fromASCII ( const std::string &  in  )  throw (CodecException) [inline, static]

Converts ASCII "encoded" string to a wide string.


To be used only when the input string is definitely ASCII

Parameters:
in ASCII string to convert
Returns:
converted wide string
See also:
fromString(const std::string&)

static std::wstring CarobNS::StaticCodecs::fromString ( const std::string &  in  )  throw (CodecException) [inline, static]

Converts user's locale encoded string to a wide string
To be used for conversions of locale dependent strings, eg.

system messages

Parameters:
in string to convert
Returns:
converted wide string


The documentation for this class was generated from the following file:
Generated on Fri Mar 9 17:40:20 2007 for Carob by  doxygen 1.4.7