16#ifndef _STLP_INTERNAL_CWCHAR
17#define _STLP_INTERNAL_CWCHAR
19#if defined (_STLP_WCE_EVC3)
20# ifndef _STLP_INTERNAL_MBSTATE_T
24# if defined (__GNUC__)
25# if defined (_STLP_HAS_INCLUDE_NEXT)
26# include_next <cstddef>
28# include _STLP_NATIVE_CPP_C_HEADER(cstddef)
32# if !defined (_STLP_NO_CWCHAR) && defined (_STLP_USE_NEW_C_HEADERS)
33# if defined (_STLP_HAS_INCLUDE_NEXT)
34# include_next <cwchar>
36# include _STLP_NATIVE_CPP_C_HEADER(cwchar)
38# if defined (__OpenBSD__)
39typedef _BSD_WINT_T_
wint_t;
43# define __STDC_LIMIT_MACROS
46# elif defined (_STLP_NO_WCHAR_T) || \
47 (defined (__BORLANDC__) && (__BORLANDC__ < 0x570)) || \
48 defined (__OpenBSD__) || defined (__FreeBSD__) || \
49 (defined (__GNUC__) && (defined (__APPLE__) || defined ( __Lynx__ )))
50# if defined (_STLP_HAS_INCLUDE_NEXT)
51# include_next <stddef.h>
53# include _STLP_NATIVE_C_HEADER(stddef.h)
55# if defined (__Lynx__)
61# if defined(__OpenBSD__)
62typedef _BSD_WINT_T_
wint_t;
65# if defined (_STLP_HAS_INCLUDE_NEXT)
66# include_next <wchar.h>
68# include _STLP_NATIVE_C_HEADER(wchar.h)
71# if defined (__sun) && (defined (_XOPEN_SOURCE) || (_XOPEN_VERSION - 0 == 4))
91extern wchar_t *wmemcpy();
99# if defined (__MSL__) && (__MSL__ <= 0x51FF)
100# define _STLP_WCHAR_MSL_EXCLUDE 1
102 extern "C" size_t wcsftime(
wchar_t *
str,
size_t max_size,
const wchar_t * format_str,
const struct tm * timeptr);
104# define _STLP_NO_NATIVE_MBSTATE_T 1
105# elif defined (__BORLANDC__)
106# if !defined (_STLP_USE_NO_IOSTREAMS)
107# define _STLP_NO_NATIVE_MBSTATE_T
109# define _STLP_WCHAR_BORLAND_EXCLUDE 1
112# ifndef _STLP_INTERNAL_MBSTATE_T
116# if !defined (_STLP_NO_WCHAR_T)
120# if defined (__SUNPRO_CC) || defined (__DJGPP)
121# define WCHAR_MAX (~0)
123# define WCHAR_MAX ((wchar_t)~0)
126# if defined (__DMC__) || (defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400)) || defined(_WIN32_WCE)
132# define WCHAR_MAX 0xffff
134# if defined (__GNUC__) && defined (__alpha__)
148# define WCHAR_MAX 0xffffffff
150# if defined(__HP_aCC) && (__HP_aCC >= 60000)
160# define WCHAR_MAX UINT_MAX
164# if defined (_STLP_IMPORT_VENDOR_CSTD)
166# if defined (__SUNPRO_CC) && !defined (_STLP_HAS_NO_NEW_C_HEADERS)
167using _STLP_VENDOR_CSTD::wint_t;
171# if defined (_STLP_NO_WCHAR_T)
177# if (defined (__GNUC__) && ! defined (_GLIBCPP_USE_WCHAR_T))
180using _STLP_VENDOR_CSTD::wint_t;
184using _STLP_VENDOR_CSTD::size_t;
186# if !defined (_STLP_NO_NATIVE_MBSTATE_T) && !defined (_STLP_USE_OWN_MBSTATE_T)
187using _STLP_VENDOR_MB_NAMESPACE::mbstate_t;
189# if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS) && !defined(_STLP_WCHAR_BORLAND_EXCLUDE) && \
190 (!defined(__MSL__) || __MSL__ > 0x6001)
191# if defined (__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 3) || ((__MINGW32_MAJOR_VERSION == 3) && (__MINGW32_MINOR_VERSION >= 8))) || \
192 !(defined (__KCC) || defined (__GNUC__)) && !defined(_STLP_WCE_NET)
193using _STLP_VENDOR_MB_NAMESPACE::btowc;
194# if (!defined(__MSL__) || __MSL__ > 0x7001)
195using _STLP_VENDOR_MB_NAMESPACE::mbsinit;
198# if defined (__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 3) || ((__MINGW32_MAJOR_VERSION == 3) && (__MINGW32_MINOR_VERSION >= 8))) || \
199 !defined (__GNUC__) && !defined(_STLP_WCE_NET)
200using _STLP_VENDOR_MB_NAMESPACE::mbrlen;
201using _STLP_VENDOR_MB_NAMESPACE::mbrtowc;
202using _STLP_VENDOR_MB_NAMESPACE::mbsrtowcs;
203using _STLP_VENDOR_MB_NAMESPACE::wcrtomb;
204using _STLP_VENDOR_MB_NAMESPACE::wcsrtombs;
210# if !defined (_STLP_NO_NATIVE_WIDE_FUNCTIONS) && ! defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
212# if !defined (_STLP_WCHAR_BORLAND_EXCLUDE) && ! defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
213using _STLP_VENDOR_CSTD::fgetwc;
214using _STLP_VENDOR_CSTD::fgetws;
215using _STLP_VENDOR_CSTD::fputwc;
216using _STLP_VENDOR_CSTD::fputws;
219# if !(defined (_STLP_WCHAR_SUNPRO_EXCLUDE) || defined (_STLP_WCHAR_BORLAND_EXCLUDE) || \
220 defined(_STLP_WCHAR_HPACC_EXCLUDE) )
221# if !defined (__DECCXX)
222using _STLP_VENDOR_CSTD::fwide;
224using _STLP_VENDOR_CSTD::fwprintf;
225using _STLP_VENDOR_CSTD::fwscanf;
226using _STLP_VENDOR_CSTD::getwchar;
229# if !defined(_STLP_WCHAR_BORLAND_EXCLUDE)
230# ifndef _STLP_WCE_NET
231using _STLP_VENDOR_CSTD::getwc;
233using _STLP_VENDOR_CSTD::ungetwc;
234# ifndef _STLP_WCE_NET
235using _STLP_VENDOR_CSTD::putwc;
237using _STLP_VENDOR_CSTD::putwchar;
240# if !(defined (_STLP_WCHAR_SUNPRO_EXCLUDE) || defined (_STLP_WCHAR_BORLAND_EXCLUDE) || \
241 defined (_STLP_WCHAR_HPACC_EXCLUDE) )
242# if defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB <= 1300) || \
243 defined (__MINGW32__)
245# define swprintf _snwprintf
247# define vswprintf _vsnwprintf
251using _STLP_VENDOR_CSTD::swprintf;
252using _STLP_VENDOR_CSTD::vswprintf;
254using _STLP_VENDOR_CSTD::swscanf;
255using _STLP_VENDOR_CSTD::vfwprintf;
256using _STLP_VENDOR_CSTD::vwprintf;
258# if (!defined(__MSL__) || __MSL__ > 0x7001 ) && !defined(_STLP_WCE_NET) && \
259 !defined(_STLP_USE_UCLIBC)
261using _STLP_VENDOR_CSTD::wcsftime;
263using _STLP_VENDOR_CSTD::wcstok;
267# if !defined (_STLP_WCE_NET)
268using _STLP_VENDOR_CSTD::wcscoll;
269using _STLP_VENDOR_CSTD::wcsxfrm;
271using _STLP_VENDOR_CSTD::wcscat;
272using _STLP_VENDOR_CSTD::wcsrchr;
273using _STLP_VENDOR_CSTD::wcscmp;
275using _STLP_VENDOR_CSTD::wcscpy;
276using _STLP_VENDOR_CSTD::wcscspn;
278using _STLP_VENDOR_CSTD::wcslen;
279using _STLP_VENDOR_CSTD::wcsncat;
280using _STLP_VENDOR_CSTD::wcsncmp;
281using _STLP_VENDOR_CSTD::wcsncpy;
282using _STLP_VENDOR_CSTD::wcspbrk;
283using _STLP_VENDOR_CSTD::wcschr;
285using _STLP_VENDOR_CSTD::wcsspn;
287# if !defined (_STLP_WCHAR_BORLAND_EXCLUDE)
288using _STLP_VENDOR_CSTD::wcstod;
289using _STLP_VENDOR_CSTD::wcstol;
292# if !(defined (_STLP_WCHAR_SUNPRO_EXCLUDE) || defined (_STLP_WCHAR_HPACC_EXCLUDE) )
293using _STLP_VENDOR_CSTD::wcsstr;
294using _STLP_VENDOR_CSTD::wmemchr;
296# if !defined (_STLP_WCHAR_BORLAND_EXCLUDE)
297# if !defined (_STLP_WCE_NET)
298using _STLP_VENDOR_CSTD::wctob;
300# if !defined (__DMC__)
301using _STLP_VENDOR_CSTD::wmemcmp;
302using _STLP_VENDOR_CSTD::wmemmove;
304using _STLP_VENDOR_CSTD::wprintf;
305using _STLP_VENDOR_CSTD::wscanf;
308# if defined (__BORLANDC__) && !defined (__linux__)
309inline wchar_t* _STLP_wmemcpy(
wchar_t* __wdst,
const wchar_t* __wsrc,
size_t __n)
310{
return __STATIC_CAST(
wchar_t*, _STLP_VENDOR_CSTD::wmemcpy(__wdst, __wsrc,
__n)); }
311inline wchar_t* _STLP_wmemset(
wchar_t* __wdst,
wchar_t __wc,
size_t __n)
312{
return __STATIC_CAST(
wchar_t*, _STLP_VENDOR_CSTD::memset(__wdst, __wc,
__n)); }
315inline wchar_t* wmemcpy(
wchar_t* __wdst,
const wchar_t* __wsrc,
size_t __n)
316{
return _STLP_wmemcpy(__wdst, __wsrc,
__n); }
317inline wchar_t*
wmemset(
wchar_t* __wdst,
wchar_t __wc,
size_t __n)
318{
return _STLP_wmemset(__wdst, __wc,
__n); }
319# elif defined (__DMC__)
320inline wchar_t* wmemcpy(
wchar_t* __RESTRICT __wdst,
const wchar_t* __RESTRICT __wsrc,
size_t __n)
322inline wchar_t*
wmemmove(
wchar_t* __RESTRICT __wdst,
const wchar_t * __RESTRICT __wc,
size_t __n)
324inline wchar_t*
wmemset(
wchar_t* __wdst,
wchar_t __wc,
size_t __n)
325{
for (
size_t i = 0;
i <
__n;
i++) __wdst[
i] = __wc;
return __wdst; }
327using _STLP_VENDOR_CSTD::wmemcpy;
328using _STLP_VENDOR_CSTD::wmemset;
337# undef _STLP_WCHAR_SUNPRO_EXCLUDE
338# undef _STLP_WCHAR_MSL_EXCLUDE
#define _STLP_STATIC_ASSERT(expr)
#define __STATIC_CAST(__x, __y)
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_opt_ _CRTIMP int __cdecl vwprintf(_In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl vfwprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_ _CRTIMP int __cdecl swscanf(_In_z_ const wchar_t *_Src, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
_Check_return_ _CRTIMP int __cdecl fwscanf(_Inout_ FILE *_File, _In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
static _Check_return_opt_ int __cdecl vswprintf(_Out_writes_z_(_SizeInWords) wchar_t *_DstBuf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl fwprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const wchar_t *_Format,...)
_Check_return_ _CRTIMP int __cdecl wscanf(_In_z_ _Scanf_format_string_ const wchar_t *_Format,...)
size_t __cdecl wcsrtombs(_Pre_maybenull_ _Post_z_ char *_Dest, _Inout_ _Deref_prepost_z_ const wchar_t **_PSource, _In_ size_t _Count, _Out_opt_ mbstate_t *_State)
int __cdecl wctob(_In_ wint_t _WCh)
_CONST_RETURN wchar_t *__cdecl wmemchr(_In_reads_(_N) const wchar_t *_S, _In_ wchar_t _C, _In_ size_t _N)
wint_t __cdecl btowc(int)
size_t __cdecl mbsrtowcs(_Pre_notnull_ _Post_z_ wchar_t *_Dest, _Inout_ _Deref_prepost_opt_valid_ const char **_PSrc, _In_ size_t _Count, _Inout_opt_ mbstate_t *_State)
wchar_t *__cdecl wmemmove(_Out_writes_all_opt_(_N) wchar_t *_S1, _In_reads_opt_(_N) const wchar_t *_S2, _In_ size_t _N)
__CRT_INLINE int __cdecl fwide(_In_opt_ FILE *_F, int _M)
wchar_t *__cdecl wmemset(_Out_writes_all_(_N) wchar_t *_S, _In_ wchar_t _C, _In_ size_t _N)
int __cdecl wmemcmp(_In_reads_(_N) const wchar_t *_S1, _In_reads_(_N) const wchar_t *_S2, _In_ size_t _N)
size_t __cdecl mbrlen(_In_reads_bytes_opt_(_SizeInBytes) _Pre_opt_z_ const char *_Ch, _In_ size_t _SizeInBytes, _Out_opt_ mbstate_t *_State)
_CONST_RETURN wchar_t *__cdecl wcsstr(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_SubStr)
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
size_t CDECL wcsftime(wchar_t *str, size_t max, const wchar_t *format, const struct tm *mstm)