Back to index

nux  3.0.0
Public Member Functions
nux::AnsiToTCharConversion Class Reference

ANSI to TCHAR conversion. More...

#include <NUnicode.h>

List of all members.

Public Member Functions

NUX_INLINE AnsiToTCharConversion ()
NUX_INLINE TCHARConvert (const ANSICHAR *Source)
 Convert from ANSICHAR to TCHAR.

Detailed Description

ANSI to TCHAR conversion.

Definition at line 290 of file NUnicode.h.

Constructor & Destructor Documentation

Definition at line 293 of file NUnicode.h.


Member Function Documentation

Convert from ANSICHAR to TCHAR.

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

Definition at line 300 of file NUnicode.h.

#ifdef UNICODE
      AnsicharToUnicharConvertion convert;
      return convert.Convert (Source);
      size_t length = strlen (Source) + 1;
      size_t size = length;
      TCHAR *Dest = new TCHAR[size];
      STRNCPY_S (Dest, size, Source, length);
      return Dest;

Here is the call graph for this function:

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