2007-02-17 16:34:10 +00:00
|
|
|
/*
|
|
|
|
* winchar.h
|
|
|
|
*
|
|
|
|
* This file is a part of NSIS.
|
|
|
|
*
|
2013-05-17 19:31:36 +00:00
|
|
|
* Copyright (C) 1999-2013 Nullsoft and Contributors
|
2007-02-17 16:34:10 +00:00
|
|
|
*
|
|
|
|
* Licensed under the zlib/libpng license (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
*
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* This software is provided 'as-is', without any express or implied
|
|
|
|
* warranty.
|
2010-03-24 17:22:56 +00:00
|
|
|
*
|
|
|
|
* Reviewed for Unicode support by Jim Park -- 07/31/2007
|
2007-02-17 16:34:10 +00:00
|
|
|
*/
|
|
|
|
|
2007-01-25 12:57:44 +00:00
|
|
|
#include "Platform.h"
|
|
|
|
|
2010-04-30 14:48:19 +00:00
|
|
|
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
|