// 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
char *rdat = wxMBSTRINGCAST dat;
double ret = strtod(dat, &rdat);
char *rdat = wxMBSTRINGCAST dat;
double ret = strtod(dat, &rdat);
(wxIsalpha(*nptr) && (wxToupper(*nptr) - wxT('A') + 10 < base))) nptr++;
wxString data(start, nptr-start);
(wxIsalpha(*nptr) && (wxToupper(*nptr) - wxT('A') + 10 < base))) nptr++;
wxString data(start, nptr-start);
char *rdat = wxMBSTRINGCAST dat;
long int ret = strtol(dat, &rdat, base);
char *rdat = wxMBSTRINGCAST dat;
long int ret = strtol(dat, &rdat, base);
// time getenv() is called, so it is OK to use static string
// buffer to hold the data.
static wxWCharBuffer value((wxChar*)NULL);
// time getenv() is called, so it is OK to use static string
// buffer to hold the data.
static wxWCharBuffer value((wxChar*)NULL);
// missing C RTL functions
// ----------------------------------------------------------------------------
// missing C RTL functions
// ----------------------------------------------------------------------------