AnsiWide.hpp File Reference

Ansi/Wide string conversion functions. More...


Namespaces

namespace  Core

Classes

class  Core::ANSI2WIDE
 The class used to do the conversion from ANSI to Wide via the X2Y() macros. More...
class  Core::WIDE2ANSI
 The class used to do the conversion from Wide to ANSI via the X2Y() macros. More...

Defines

#define A2W(psz)   static_cast<const wchar_t*>(Core::ANSI2WIDE(psz))
 Convert an ANSI string to Wide.
#define W2A(psz)   static_cast<const char*>(Core::WIDE2ANSI(psz))
 Convert a Wide string to ANSI.
#define A2T(psz)   A2W(psz)
 Convert an ANSI string to a TCHAR string.
#define T2A(psz)   W2A(psz)
 Convert a TCHAR string to ANSI.
#define W2T(psz)   (psz)
 Convert a Wide string to a TCHAR string.
#define T2W(psz)   (psz)
 Convert a TCHAR string to Wide.

Functions

void Core::AnsiToWide (const char *pszBegin, const char *pszEnd, wchar_t *pszDst)
 Convert a string from ANSI to Wide.
std::wstring Core::AnsiToWide (const char *pszBegin, const char *pszEnd)
 Convert a string from ANSI to Wide.
std::wstring Core::AnsiToWide (const char *psz)
 Convert a string from ANSI to Wide.
std::wstring Core::AnsiToWide (const std::string &str)
 Convert a string from ANSI to Wide.
void Core::WideToAnsi (const wchar_t *pszBegin, const wchar_t *pszEnd, char *pszDst)
 Convert a string from Wide to ANSI.
std::string Core::WideToAnsi (const wchar_t *pszBegin, const wchar_t *pszEnd)
 Convert a string from Wide to ANSI.
std::string Core::WideToAnsi (const wchar_t *psz)
 Convert a string from Wide to ANSI.
std::string Core::WideToAnsi (const std::wstring &str)
 Convert a string from Wide to ANSI.


Detailed Description

Ansi/Wide string conversion functions.

Author:
Chris Oldwood

Define Documentation

#define A2W ( psz   )     static_cast<const wchar_t*>(Core::ANSI2WIDE(psz))

Convert an ANSI string to Wide.

#define W2A ( psz   )     static_cast<const char*>(Core::WIDE2ANSI(psz))

Convert a Wide string to ANSI.

#define A2T ( psz   )     A2W(psz)

Convert an ANSI string to a TCHAR string.

#define T2A ( psz   )     W2A(psz)

Convert a TCHAR string to ANSI.

#define W2T ( psz   )     (psz)

Convert a Wide string to a TCHAR string.

#define T2W ( psz   )     (psz)

Convert a TCHAR string to Wide.


Generated on Wed Feb 13 22:53:28 2008 for Core Library by  doxygen 1.5.2