/home/ntakagi/work/STLport-5.1.5/stlport/stl/_cwctype.hGo 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 #ifndef _STLP_INTERNAL_CWCTYPE 00017 #define _STLP_INTERNAL_CWCTYPE 00018 00019 #if defined (__BORLANDC__) && !defined (_STLP_INTERNAL_CCTYPE) 00020 # include <stl/_cctype.h> 00021 #endif 00022 00023 #if !defined (_STLP_WCE_EVC3) 00024 # if defined (_STLP_USE_NEW_C_HEADERS) 00025 # if !defined (N_PLAT_NLM) 00026 # include _STLP_NATIVE_CPP_C_HEADER(cwctype) 00027 # else 00028 // see comments in stlport/cwchar about wint_t on Novell 00029 # include _STLP_NATIVE_CPP_C_HEADER(wchar_t.h) 00030 # include _STLP_NATIVE_C_HEADER(stddef.h) 00031 # include _STLP_NATIVE_C_HEADER(stdio.h) 00032 # endif 00033 # if defined (__MSL__) && !defined (N_PLAT_NLM) 00034 namespace std { 00035 typedef wchar_t wctrans_t; 00036 wint_t towctrans(wint_t c, wctrans_t value); 00037 wctrans_t wctrans(const char *name); 00038 } 00039 using std::wctrans_t; 00040 using std::towctrans; 00041 using std::wctrans; 00042 # endif 00043 # else 00044 # include _STLP_NATIVE_C_HEADER(wctype.h) 00045 # endif 00046 00047 # if defined (_STLP_IMPORT_VENDOR_CSTD) 00048 00049 # if defined (_STLP_USE_GLIBC) && !(defined (_GLIBCPP_USE_WCHAR_T) || defined (_GLIBCXX_USE_WCHAR_T)) || \ 00050 defined (__sun) || defined (__FreeBSD__) || \ 00051 defined (__MINGW32__) && ((__MINGW32_MAJOR_VERSION < 3) || (__MINGW32_MAJOR_VERSION == 3) && (__MINGW32_MINOR_VERSION <= 0)) 00052 //We take wide functions from global namespace: 00053 # define _STLP_VENDOR_CSTD_WFUNC 00054 # else 00055 # define _STLP_VENDOR_CSTD_WFUNC _STLP_VENDOR_CSTD 00056 # endif 00057 00058 _STLP_BEGIN_NAMESPACE 00059 using _STLP_VENDOR_CSTD_WFUNC::wctype_t; 00060 using _STLP_VENDOR_CSTD_WFUNC::wint_t; 00061 # if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS) 00062 # if !defined (__BORLANDC__) && !defined (__MSL__) 00063 using _STLP_VENDOR_CSTD_WFUNC::wctrans_t; 00064 # if !defined (__DMC__) && (!defined(_WIN32_WCE) || _WIN32_WCE<0x500) 00065 using _STLP_VENDOR_CSTD_WFUNC::towctrans; 00066 using _STLP_VENDOR_CSTD_WFUNC::wctrans; 00067 using _STLP_VENDOR_CSTD_WFUNC::wctype; 00068 # endif 00069 using _STLP_VENDOR_CSTD_WFUNC::iswctype; 00070 # endif 00071 # if !defined(N_PLAT_NLM) 00072 using _STLP_VENDOR_CSTD_WFUNC::iswalnum; 00073 using _STLP_VENDOR_CSTD_WFUNC::iswalpha; 00074 using _STLP_VENDOR_CSTD_WFUNC::iswcntrl; 00075 00076 using _STLP_VENDOR_CSTD_WFUNC::iswdigit; 00077 using _STLP_VENDOR_CSTD_WFUNC::iswgraph; 00078 using _STLP_VENDOR_CSTD_WFUNC::iswlower; 00079 using _STLP_VENDOR_CSTD_WFUNC::iswprint; 00080 using _STLP_VENDOR_CSTD_WFUNC::iswpunct; 00081 using _STLP_VENDOR_CSTD_WFUNC::iswspace; 00082 using _STLP_VENDOR_CSTD_WFUNC::iswupper; 00083 using _STLP_VENDOR_CSTD_WFUNC::iswxdigit; 00084 00085 using _STLP_VENDOR_CSTD_WFUNC::towlower; 00086 using _STLP_VENDOR_CSTD_WFUNC::towupper; 00087 # endif /* !N_PLAT_NLM */ 00088 # endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */ 00089 _STLP_END_NAMESPACE 00090 # endif /* _STLP_IMPORT_VENDOR_CSTD */ 00091 #endif /* _STLP_WCE_EVC3 */ 00092 00093 #endif /* _STLP_INTERNAL_CWCTYPE */
Generated on Mon Mar 10 15:32:20 2008 by ![]() |