// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ===========================================================================
// headers, declarations, constants
// ===========================================================================
// ===========================================================================
// headers, declarations, constants
// ===========================================================================
size_t WXDLLEXPORT wxMB2WC(wchar_t *buf, const char *psz, size_t n)
{
// assume that we have mbsrtowcs() too if we have wcsrtombs()
size_t WXDLLEXPORT wxMB2WC(wchar_t *buf, const char *psz, size_t n)
{
// assume that we have mbsrtowcs() too if we have wcsrtombs()
#ifdef HAVE_WCSRTOMBS
return mbsrtowcs(buf, &psz, n, &mbstate);
#else
#ifdef HAVE_WCSRTOMBS
return mbsrtowcs(buf, &psz, n, &mbstate);
#else
#endif
}
#ifdef HAVE_WCSRTOMBS
return mbsrtowcs((wchar_t *) NULL, &psz, 0, &mbstate);
#else
#endif
}
#ifdef HAVE_WCSRTOMBS
return mbsrtowcs((wchar_t *) NULL, &psz, 0, &mbstate);
#else
return wcsrtombs(buf, &pwz, n, &mbstate);
#else
return wcsrtombs(buf, &pwz, n, &mbstate);
#else
return wcsrtombs((char *) NULL, &pwz, 0, &mbstate);
#else
return wcsrtombs((char *) NULL, &pwz, 0, &mbstate);
#else
// missing C RTL functions
// ----------------------------------------------------------------------------
// missing C RTL functions
// ----------------------------------------------------------------------------