Back to index

nux  3.0.0
Public Member Functions
nux::TCharToUnicharConvertion Class Reference

TCHAR to Unichar conversion. More...

#include <NUnicode.h>

List of all members.

Public Member Functions

NUX_INLINE TCharToUnicharConvertion ()
NUX_INLINE UNICHARConvert (const TCHAR *Source)
 Convert from TCHAR to ANSICHAR.

Detailed Description

TCHAR to Unichar conversion.

Definition at line 262 of file NUnicode.h.

Constructor & Destructor Documentation

Definition at line 265 of file NUnicode.h.


Member Function Documentation

Convert from TCHAR to ANSICHAR.

SourceString to convert. Null terminated.
Return a pointer to the new string. Null terminated.

Definition at line 272 of file NUnicode.h.

      // Determine whether we need to allocate memory or not
#ifdef UNICODE
      size_t length = strlen (Source) + 1;
      size_t size = length * sizeof (UNICHAR);
      UNICHAR *Dest = new UNICHAR[size];
      STRNCPY_S (Dest, size, Source, length);
      return Dest;
      AnsicharToUnicharConvertion convert;
      return convert.Convert (Source);

Here is the call graph for this function:

The documentation for this class was generated from the following file: