nux-1.16.0
|
ANSI to TCHAR conversion. More...
#include <NuxCore/Character/NUnicode.h>
Public Member Functions | |
NUX_INLINE TCHAR * | Convert (const ANSICHAR *Source) |
ANSI to TCHAR conversion.
Definition at line 290 of file NUnicode.h.
NUX_INLINE TCHAR* nux::AnsiToTCharConversion::Convert | ( | const ANSICHAR * | Source | ) | [inline] |
Convert from ANSICHAR to TCHAR
Source | String to convert. Null terminated. |
Definition at line 300 of file NUnicode.h.
References nux::AnsicharToUnicharConvertion::Convert().
{ #ifdef UNICODE AnsicharToUnicharConvertion convert; return convert.Convert (Source); #else size_t length = strlen (Source) + 1; size_t size = length; TCHAR *Dest = new TCHAR[size]; STRNCPY_S (Dest, size, Source, length); return Dest; #endif }