final compilo fixups for 10.2 unicode - c/c++ fixes for regex - fixup regex unit tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1178,11 +1178,28 @@ WXDLLEXPORT wxWCharBuffer wxSetlocale(int category, const wxChar *locale)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if wxUSE_WCHAR_T && !defined(HAVE_WCSLEN)
|
||||
WXDLLEXPORT size_t wxWcslen(const wchar_t *s)
|
||||
{
|
||||
size_t n = 0;
|
||||
while ( *s++ )
|
||||
n++;
|
||||
|
||||
return n;
|
||||
}
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// string.h functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifdef wxNEED_WX_STRING_H
|
||||
|
||||
// RN: These need to be c externed for the regex lib
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
WXDLLEXPORT wxChar * wxStrcat(wxChar *dest, const wxChar *src)
|
||||
{
|
||||
wxChar *ret = dest;
|
||||
@@ -1302,6 +1319,10 @@ WXDLLEXPORT const wxChar *wxStrstr(const wxChar *haystack, const wxChar *needle)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
WXDLLEXPORT double wxStrtod(const wxChar *nptr, wxChar **endptr)
|
||||
{
|
||||
const wxChar *start = nptr;
|
||||
|
Reference in New Issue
Block a user