Using standard wchar string functions instead of winchar_*
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6072 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b9a5d24705
commit
f7f4d2f033
10 changed files with 72 additions and 69 deletions
|
@ -18,9 +18,17 @@
|
|||
|
||||
#include "Platform.h"
|
||||
|
||||
WCHAR *winchar_fromTchar(const TCHAR* s, unsigned int codepage = CP_ACP);
|
||||
WCHAR *winchar_strcpy(WCHAR *ws1, const WCHAR *ws2);
|
||||
WCHAR *winchar_strncpy(WCHAR *ws1, const WCHAR *ws2, size_t n);
|
||||
size_t winchar_strlen(const WCHAR *ws);
|
||||
WCHAR *winchar_strdup(const WCHAR *ws);
|
||||
int winchar_strcmp(const WCHAR *ws1, const WCHAR *ws2);
|
||||
WCHAR *wcsdup_fromansi(const char* s, unsigned int codepage = CP_ACP);
|
||||
#ifdef _UNICODE
|
||||
#define wcsdup_fromTchar(s, codepage) _wcsdup(s) // codepage is not used in this mode
|
||||
#else
|
||||
#define wcsdup_fromTchar(s, codepage) wcsdup_fromansi(s, codepage)
|
||||
#endif
|
||||
|
||||
#if 0 // Needed by some RTL missing wchar string functions ?
|
||||
WCHAR *wcscpy(WCHAR *ws1, const WCHAR *ws2);
|
||||
WCHAR *wcsncpy(WCHAR *ws1, const WCHAR *ws2, size_t n);
|
||||
size_t wcslen(const WCHAR *ws);
|
||||
WCHAR *_wcsdup(const WCHAR *ws);
|
||||
int wcscmp(const WCHAR *ws1, const WCHAR *ws2);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue