/home/ntakagi/work/STLport-5.1.5/stlport/wchar.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1999
00003  * Boris Fomitchev
00004  *
00005  * This material is provided "as is", with absolutely no warranty expressed
00006  * or implied. Any use is at your own risk.
00007  *
00008  * Permission to use or copy this software for any purpose is hereby granted
00009  * without fee, provided the above notices are retained on all copies.
00010  * Permission to modify the code and to distribute modified code is granted,
00011  * provided the above notices are retained, and a notice that the code was
00012  * modified is included with the above copyright notice.
00013  *
00014  */
00015 
00016 #if !defined (_STLP_OUTERMOST_HEADER_ID)
00017 #  define _STLP_OUTERMOST_HEADER_ID 0x278
00018 #  include <stl/_prolog.h>
00019 #elif (_STLP_OUTERMOST_HEADER_ID == 0x278) && !defined (_STLP_DONT_POP_HEADER_ID)
00020 #  define _STLP_DONT_POP_HEADER_ID
00021 #endif
00022 
00023 #if !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T)
00024 
00025 #  if defined (__BORLANDC__)
00026 /*
00027 #  include <cstring>
00028 */
00029 #    include _STLP_NATIVE_CPP_C_HEADER(_str.h)
00030 #    ifdef __cplusplus
00031 using _STLP_VENDOR_CSTD::strlen;
00032 using _STLP_VENDOR_CSTD::strspn;
00033 #    endif
00034 #  endif
00035 
00036 #  if (((__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))) && defined (__APPLE__)) || defined (__OpenBSD__)
00037 #    include _STLP_NATIVE_C_HEADER(stddef.h)
00038 #  elif defined(__MWERKS__) && defined(N_PLAT_NLM)
00039 /*
00040  * MSL library has wrong definition of wint_t (with -wchar_t on) in wchar_t.h header.
00041  * IMHO the best way is to comment line
00042  *       typedef wchar_t wint_t;
00043  * (I use this way).
00044  *
00045  * Another solution is to define _WINT_T (to avoid conflict with wint_t definitions in
00046  * Novell SDK headers, _WCHAR_T defined in nlm_prefix.h). But you should define one
00047  * before include any header from Novell's SDK, so this isn't too good choice.
00048  *
00049  * And third solution is don't use anyware (even here) wchar_t.h
00050  *
00051  *      - ptr, 2003 and 2005-05-07
00052  */
00053 /*
00054 #if __option(wchar_type)
00055 # define _WINT_T
00056 #endif
00057 */
00058 #   include _STLP_NATIVE_CPP_C_HEADER(wchar_t.h)
00059 #   include _STLP_NATIVE_C_HEADER(stddef.h)
00060 #   include _STLP_NATIVE_C_HEADER(stdio.h)
00061 #   include <unicode.h>
00062 int wcslen( const wchar_t *_wc );
00063 int wcscmp( const wchar_t *_wc1, const wchar_t *_wc2 );
00064 int wcsncmp( const wchar_t *_wc1, const wchar_t *_wc2, size_t n );
00065 wchar_t *wcsstr( const wchar_t *_wc1, const wchar_t *_wc2 );
00066 wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 );
00067 wchar_t *wcsrchr( const wchar_t *_wc1, wchar_t _wc2 );
00068 wchar_t *wcscpy( wchar_t *_wc1, const wchar_t *_wc2 );
00069 wchar_t *wcsncpy( wchar_t *_wc1, const wchar_t *_wc2, size_t n );
00070 wchar_t *wcspbrk( const wchar_t *_wc, const wchar_t *_wc2 );
00071 #  else
00072 #    include _STLP_NATIVE_C_HEADER(wchar.h)
00073 #  endif
00074 #endif /* !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T) */
00075 
00076 #ifndef _STLP_INTERNAL_MBSTATE_T
00077 #  include <stl/_mbstate_t.h>
00078 #endif
00079 
00080 #if (_STLP_OUTERMOST_HEADER_ID == 0x278)
00081 #  if ! defined (_STLP_DONT_POP_HEADER_ID)
00082 #    include <stl/_epilog.h>
00083 #    undef  _STLP_OUTERMOST_HEADER_ID
00084 #  else
00085 #    undef  _STLP_DONT_POP_HEADER_ID
00086 #  endif
00087 #endif
00088 
00089 /*
00090  Local Variables:
00091  mode:C++
00092  End:
00093 */



Generated on Mon Mar 10 15:32:47 2008 by  doxygen 1.5.1