epoc32/include/tools/stlport/wchar.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/tools/stlport/wchar.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,93 @@
     1.4 +/*
     1.5 + * Copyright (c) 1999
     1.6 + * Boris Fomitchev
     1.7 + *
     1.8 + * This material is provided "as is", with absolutely no warranty expressed
     1.9 + * or implied. Any use is at your own risk.
    1.10 + *
    1.11 + * Permission to use or copy this software for any purpose is hereby granted
    1.12 + * without fee, provided the above notices are retained on all copies.
    1.13 + * Permission to modify the code and to distribute modified code is granted,
    1.14 + * provided the above notices are retained, and a notice that the code was
    1.15 + * modified is included with the above copyright notice.
    1.16 + *
    1.17 + */
    1.18 +
    1.19 +#if !defined (_STLP_OUTERMOST_HEADER_ID)
    1.20 +#  define _STLP_OUTERMOST_HEADER_ID 0x278
    1.21 +#  include <stl/_prolog.h>
    1.22 +#elif (_STLP_OUTERMOST_HEADER_ID == 0x278) && !defined (_STLP_DONT_POP_HEADER_ID)
    1.23 +#  define _STLP_DONT_POP_HEADER_ID
    1.24 +#endif
    1.25 +
    1.26 +#if !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T)
    1.27 +
    1.28 +#  if defined (__BORLANDC__)
    1.29 +/*
    1.30 +#  include <cstring>
    1.31 +*/
    1.32 +#    include _STLP_NATIVE_CPP_C_HEADER(_str.h)
    1.33 +#    ifdef __cplusplus
    1.34 +using _STLP_VENDOR_CSTD::strlen;
    1.35 +using _STLP_VENDOR_CSTD::strspn;
    1.36 +#    endif
    1.37 +#  endif
    1.38 +
    1.39 +#  if (((__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))) && defined (__APPLE__)) || defined (__OpenBSD__)
    1.40 +#    include _STLP_NATIVE_C_HEADER(stddef.h)
    1.41 +#  elif defined(__MWERKS__) && defined(N_PLAT_NLM)
    1.42 +/*
    1.43 + * MSL library has wrong definition of wint_t (with -wchar_t on) in wchar_t.h header.
    1.44 + * IMHO the best way is to comment line
    1.45 + *       typedef wchar_t wint_t;
    1.46 + * (I use this way).
    1.47 + *
    1.48 + * Another solution is to define _WINT_T (to avoid conflict with wint_t definitions in
    1.49 + * Novell SDK headers, _WCHAR_T defined in nlm_prefix.h). But you should define one
    1.50 + * before include any header from Novell's SDK, so this isn't too good choice.
    1.51 + *
    1.52 + * And third solution is don't use anyware (even here) wchar_t.h
    1.53 + *
    1.54 + *      - ptr, 2003 and 2005-05-07
    1.55 + */
    1.56 +/*
    1.57 +#if __option(wchar_type)
    1.58 +# define _WINT_T
    1.59 +#endif
    1.60 +*/
    1.61 +#   include _STLP_NATIVE_CPP_C_HEADER(wchar_t.h)
    1.62 +#   include _STLP_NATIVE_C_HEADER(stddef.h)
    1.63 +#   include _STLP_NATIVE_C_HEADER(stdio.h)
    1.64 +#   include <unicode.h>
    1.65 +int wcslen( const wchar_t *_wc );
    1.66 +int wcscmp( const wchar_t *_wc1, const wchar_t *_wc2 );
    1.67 +int wcsncmp( const wchar_t *_wc1, const wchar_t *_wc2, size_t n );
    1.68 +wchar_t *wcsstr( const wchar_t *_wc1, const wchar_t *_wc2 );
    1.69 +wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 );
    1.70 +wchar_t *wcsrchr( const wchar_t *_wc1, wchar_t _wc2 );
    1.71 +wchar_t *wcscpy( wchar_t *_wc1, const wchar_t *_wc2 );
    1.72 +wchar_t *wcsncpy( wchar_t *_wc1, const wchar_t *_wc2, size_t n );
    1.73 +wchar_t *wcspbrk( const wchar_t *_wc, const wchar_t *_wc2 );
    1.74 +#  else
    1.75 +#    include _STLP_NATIVE_C_HEADER(wchar.h)
    1.76 +#  endif
    1.77 +#endif /* !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T) */
    1.78 +
    1.79 +#ifndef _STLP_INTERNAL_MBSTATE_T
    1.80 +#  include <stl/_mbstate_t.h>
    1.81 +#endif
    1.82 +
    1.83 +#if (_STLP_OUTERMOST_HEADER_ID == 0x278)
    1.84 +#  if ! defined (_STLP_DONT_POP_HEADER_ID)
    1.85 +#    include <stl/_epilog.h>
    1.86 +#    undef  _STLP_OUTERMOST_HEADER_ID
    1.87 +#  else
    1.88 +#    undef  _STLP_DONT_POP_HEADER_ID
    1.89 +#  endif
    1.90 +#endif
    1.91 +
    1.92 +/*
    1.93 + Local Variables:
    1.94 + mode:C++
    1.95 + End:
    1.96 +*/