home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / stlport / cwctype < prev    next >
Text File  |  2002-02-02  |  2KB  |  86 lines

  1. /*
  2.  * Copyright (c) 1999 
  3.  * Boris Fomitchev
  4.  *
  5.  * This material is provided "as is", with absolutely no warranty expressed
  6.  * or implied. Any use is at your own risk.
  7.  *
  8.  * Permission to use or copy this software for any purpose is hereby granted 
  9.  * without fee, provided the above notices are retained on all copies.
  10.  * Permission to modify the code and to distribute modified code is granted,
  11.  * provided the above notices are retained, and a notice that the code was
  12.  * modified is included with the above copyright notice.
  13.  *
  14.  */
  15.  
  16. #ifndef _STLP_CWCTYPE
  17. # define _STLP_CWCTYPE
  18.  
  19. # ifndef _STLP_OUTERMOST_HEADER_ID
  20. #  define _STLP_OUTERMOST_HEADER_ID 0x121
  21. #  include <stl/_prolog.h>
  22. # endif
  23.  
  24. #ifdef __BORLANDC__
  25. # include <cctype>
  26. #endif
  27.  
  28. # if defined (_STLP_USE_NEW_C_HEADERS)
  29. #  include _STLP_NATIVE_CPP_C_HEADER(cwctype)
  30. #  if defined  (__MSL__)
  31. namespace std {
  32.     typedef wchar_t wctrans_t;
  33.     wint_t         towctrans(wint_t c, wctrans_t value);
  34.     wctrans_t     wctrans(const char *name);
  35. }
  36. #  endif
  37. # elif defined(_STLP_WINCE)
  38. #  include _STLP_NATIVE_C_HEADER(stdlib.h)
  39. # else
  40. #  include _STLP_NATIVE_C_HEADER(wctype.h)
  41. # endif
  42.  
  43. # ifdef _STLP_IMPORT_VENDOR_CSTD
  44. _STLP_BEGIN_NAMESPACE
  45. using _STLP_VENDOR_CSTD::wctype_t;
  46. using _STLP_VENDOR_CSTD::wint_t;
  47. # ifndef _STLP_NO_CSTD_FUNCTION_IMPORTS
  48. #  if ! defined (__BORLANDC__)
  49. #   if ! defined ( _STLP_HAS_NO_UNIX98_WCHAR_EXTENSIONS )
  50. using _STLP_VENDOR_CSTD::wctrans_t;
  51. using _STLP_VENDOR_CSTD::towctrans;
  52. using _STLP_VENDOR_CSTD::wctrans;
  53. #   endif
  54. using _STLP_VENDOR_CSTD::wctype;
  55. using _STLP_VENDOR_CSTD::iswctype;
  56. #  endif
  57. using _STLP_VENDOR_CSTD::iswalnum;
  58. using _STLP_VENDOR_CSTD::iswalpha;
  59. using _STLP_VENDOR_CSTD::iswcntrl;
  60.  
  61. using _STLP_VENDOR_CSTD::iswdigit;
  62. using _STLP_VENDOR_CSTD::iswgraph;
  63. using _STLP_VENDOR_CSTD::iswlower;
  64. using _STLP_VENDOR_CSTD::iswprint;
  65. using _STLP_VENDOR_CSTD::iswpunct;
  66. using _STLP_VENDOR_CSTD::iswspace;
  67. using _STLP_VENDOR_CSTD::iswupper;
  68. using _STLP_VENDOR_CSTD::iswxdigit;
  69.  
  70. using _STLP_VENDOR_CSTD::towlower;
  71. using _STLP_VENDOR_CSTD::towupper;
  72. #  endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */
  73. _STLP_END_NAMESPACE
  74. #endif /* _STLP_IMPORT_VENDOR_CSTD */
  75.  
  76. # if (_STLP_OUTERMOST_HEADER_ID == 0x121)
  77. #  include <stl/_epilog.h>
  78. #  undef _STLP_OUTERMOST_HEADER_ID
  79. # endif
  80.  
  81. #endif /* _STLP_CWCTYPE */
  82.  
  83. // Local Variables:
  84. // mode:C++
  85. // End:
  86.