epoc32/include/tools/stlport/wchar.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
/*
williamr@4
     2
 * Copyright (c) 1999
williamr@4
     3
 * Boris Fomitchev
williamr@4
     4
 *
williamr@4
     5
 * This material is provided "as is", with absolutely no warranty expressed
williamr@4
     6
 * or implied. Any use is at your own risk.
williamr@4
     7
 *
williamr@4
     8
 * Permission to use or copy this software for any purpose is hereby granted
williamr@4
     9
 * without fee, provided the above notices are retained on all copies.
williamr@4
    10
 * Permission to modify the code and to distribute modified code is granted,
williamr@4
    11
 * provided the above notices are retained, and a notice that the code was
williamr@4
    12
 * modified is included with the above copyright notice.
williamr@4
    13
 *
williamr@4
    14
 */
williamr@4
    15
williamr@4
    16
#if !defined (_STLP_OUTERMOST_HEADER_ID)
williamr@4
    17
#  define _STLP_OUTERMOST_HEADER_ID 0x278
williamr@4
    18
#  include <stl/_prolog.h>
williamr@4
    19
#elif (_STLP_OUTERMOST_HEADER_ID == 0x278) && !defined (_STLP_DONT_POP_HEADER_ID)
williamr@4
    20
#  define _STLP_DONT_POP_HEADER_ID
williamr@4
    21
#endif
williamr@4
    22
williamr@4
    23
#if !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T)
williamr@4
    24
williamr@4
    25
#  if defined (__BORLANDC__)
williamr@4
    26
/*
williamr@4
    27
#  include <cstring>
williamr@4
    28
*/
williamr@4
    29
#    include _STLP_NATIVE_CPP_C_HEADER(_str.h)
williamr@4
    30
#    ifdef __cplusplus
williamr@4
    31
using _STLP_VENDOR_CSTD::strlen;
williamr@4
    32
using _STLP_VENDOR_CSTD::strspn;
williamr@4
    33
#    endif
williamr@4
    34
#  endif
williamr@4
    35
williamr@4
    36
#  if (((__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))) && defined (__APPLE__)) || defined (__OpenBSD__)
williamr@4
    37
#    include _STLP_NATIVE_C_HEADER(stddef.h)
williamr@4
    38
#  elif defined(__MWERKS__) && defined(N_PLAT_NLM)
williamr@4
    39
/*
williamr@4
    40
 * MSL library has wrong definition of wint_t (with -wchar_t on) in wchar_t.h header.
williamr@4
    41
 * IMHO the best way is to comment line
williamr@4
    42
 *       typedef wchar_t wint_t;
williamr@4
    43
 * (I use this way).
williamr@4
    44
 *
williamr@4
    45
 * Another solution is to define _WINT_T (to avoid conflict with wint_t definitions in
williamr@4
    46
 * Novell SDK headers, _WCHAR_T defined in nlm_prefix.h). But you should define one
williamr@4
    47
 * before include any header from Novell's SDK, so this isn't too good choice.
williamr@4
    48
 *
williamr@4
    49
 * And third solution is don't use anyware (even here) wchar_t.h
williamr@4
    50
 *
williamr@4
    51
 *      - ptr, 2003 and 2005-05-07
williamr@4
    52
 */
williamr@4
    53
/*
williamr@4
    54
#if __option(wchar_type)
williamr@4
    55
# define _WINT_T
williamr@4
    56
#endif
williamr@4
    57
*/
williamr@4
    58
#   include _STLP_NATIVE_CPP_C_HEADER(wchar_t.h)
williamr@4
    59
#   include _STLP_NATIVE_C_HEADER(stddef.h)
williamr@4
    60
#   include _STLP_NATIVE_C_HEADER(stdio.h)
williamr@4
    61
#   include <unicode.h>
williamr@4
    62
int wcslen( const wchar_t *_wc );
williamr@4
    63
int wcscmp( const wchar_t *_wc1, const wchar_t *_wc2 );
williamr@4
    64
int wcsncmp( const wchar_t *_wc1, const wchar_t *_wc2, size_t n );
williamr@4
    65
wchar_t *wcsstr( const wchar_t *_wc1, const wchar_t *_wc2 );
williamr@4
    66
wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 );
williamr@4
    67
wchar_t *wcsrchr( const wchar_t *_wc1, wchar_t _wc2 );
williamr@4
    68
wchar_t *wcscpy( wchar_t *_wc1, const wchar_t *_wc2 );
williamr@4
    69
wchar_t *wcsncpy( wchar_t *_wc1, const wchar_t *_wc2, size_t n );
williamr@4
    70
wchar_t *wcspbrk( const wchar_t *_wc, const wchar_t *_wc2 );
williamr@4
    71
#  else
williamr@4
    72
#    include _STLP_NATIVE_C_HEADER(wchar.h)
williamr@4
    73
#  endif
williamr@4
    74
#endif /* !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T) */
williamr@4
    75
williamr@4
    76
#ifndef _STLP_INTERNAL_MBSTATE_T
williamr@4
    77
#  include <stl/_mbstate_t.h>
williamr@4
    78
#endif
williamr@4
    79
williamr@4
    80
#if (_STLP_OUTERMOST_HEADER_ID == 0x278)
williamr@4
    81
#  if ! defined (_STLP_DONT_POP_HEADER_ID)
williamr@4
    82
#    include <stl/_epilog.h>
williamr@4
    83
#    undef  _STLP_OUTERMOST_HEADER_ID
williamr@4
    84
#  else
williamr@4
    85
#    undef  _STLP_DONT_POP_HEADER_ID
williamr@4
    86
#  endif
williamr@4
    87
#endif
williamr@4
    88
williamr@4
    89
/*
williamr@4
    90
 Local Variables:
williamr@4
    91
 mode:C++
williamr@4
    92
 End:
williamr@4
    93
*/