Add .gitattributes and .gitignore files and normalize line endings in the repository...
[reactos.git] / sdk / include / c++ / stlport / locale
index 88519a6..22cd01f 100644 (file)
-/*\r
- * Copyright (c) 1999\r
- * Silicon Graphics Computer Systems, Inc.\r
- *\r
- * Copyright (c) 1999\r
- * Boris Fomitchev\r
- *\r
- * This material is provided "as is", with absolutely no warranty expressed\r
- * or implied. Any use is at your own risk.\r
- *\r
- * Permission to use or copy this software for any purpose is hereby granted\r
- * without fee, provided the above notices are retained on all copies.\r
- * Permission to modify the code and to distribute modified code is granted,\r
- * provided the above notices are retained, and a notice that the code was\r
- * modified is included with the above copyright notice.\r
- *\r
- */\r
-#ifndef _STLP_LOCALE\r
-\r
-// Basic framework: class locale and class locale::facet\r
-\r
-#ifndef _STLP_OUTERMOST_HEADER_ID\r
-#  define _STLP_OUTERMOST_HEADER_ID 0x1041\r
-#  include <stl/_prolog.h>\r
-#  define _STLP_LOCALE\r
-#endif\r
-\r
-#if (_STLP_OUTERMOST_HEADER_ID == 0x1041) && \\r
-   !(defined (_STLP_NO_IOSTREAMS) && defined (_STLP_IMPORT_VENDOR_STD))\r
-#  include <stl/_ioserr.h>\r
-\r
-// Individual facets\r
-#  ifndef _STLP_INTERNAL_CTYPE_H\r
-#    include <stl/_ctype.h>\r
-#  endif\r
-\r
-#  ifndef _STLP_INTERNAL_CODECVT_H\r
-#    include <stl/_codecvt.h>\r
-#  endif\r
-\r
-#  ifndef _STLP_INTERNAL_COLLATE_H\r
-#    include <stl/_collate.h>\r
-#  endif\r
-\r
-#  ifndef _STLP_INTERNAL_NUM_PUT_H\r
-#    include <stl/_num_put.h>\r
-#  endif\r
-\r
-#  ifndef _STLP_INTERNAL_NUM_GET_H\r
-#    include <stl/_num_get.h>\r
-#  endif\r
-\r
-// those never included separately anyway\r
-#  include <stl/_monetary.h>\r
-#  include <stl/_time_facets.h>\r
-#  include <stl/_messages_facets.h>\r
-\r
-// some stuff for streambuf iterators ended up defined there\r
-// Strictly speaking, _istream.h portion is only required for <iterator>, but it may break too many\r
-// programs if we omit it\r
-#  ifndef _STLP_ISTREAM_H\r
-#    include <stl/_istream.h>\r
-#  endif\r
-\r
-// Convenience interfaces\r
-#undef isspace\r
-#undef isprint\r
-#undef iscntrl\r
-#undef isupper\r
-#undef islower\r
-#undef isalpha\r
-#undef isdigit\r
-#undef ispunct\r
-#undef isxdigit\r
-#undef isalnum\r
-#undef isgraph\r
-#undef toupper\r
-#undef tolower\r
-\r
-_STLP_BEGIN_NAMESPACE\r
-\r
-template <class _CharT> \r
-inline bool isspace (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::space, c); }\r
-\r
-template <class _CharT> \r
-inline bool isprint (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::print, c); }\r
-\r
-template <class _CharT> \r
-inline bool iscntrl (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::cntrl, c); }\r
-\r
-template <class _CharT> \r
-inline bool isupper (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::upper, c); }\r
-\r
-template <class _CharT> \r
-inline bool islower (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::lower, c); }\r
-\r
-template <class _CharT> \r
-inline bool isalpha (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::alpha, c); }\r
-\r
-template <class _CharT> \r
-inline bool isdigit (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::digit, c); }\r
-\r
-template <class _CharT> \r
-inline bool ispunct (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::punct, c); }\r
-\r
-template <class _CharT> \r
-inline bool isxdigit (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::xdigit, c); }\r
-\r
-template <class _CharT> \r
-inline bool isalnum (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::alnum, c); }\r
-\r
-template <class _CharT> \r
-inline bool isgraph (_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::graph, c); }\r
-\r
-template <class _CharT>\r
-inline _CharT toupper(_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).toupper(c); }\r
-\r
-template <class _CharT>\r
-inline _CharT tolower(_CharT c, const locale& loc)\r
-{ return (use_facet<ctype<_CharT> >(loc)).tolower(c); }\r
-\r
-_STLP_END_NAMESPACE\r
-\r
-#endif\r
-\r
-#if (_STLP_OUTERMOST_HEADER_ID != 0x1041) || defined (_STLP_IMPORT_VENDOR_STD)\r
-#  if defined (_STLP_HAS_INCLUDE_NEXT)\r
-#    include_next <locale>\r
-#  else\r
-#    include _STLP_NATIVE_HEADER(locale)\r
-#  endif\r
-#endif\r
-\r
-#if (_STLP_OUTERMOST_HEADER_ID == 0x1041)\r
-#  include <stl/_epilog.h>\r
-#  undef _STLP_OUTERMOST_HEADER_ID\r
-#endif\r
-\r
-#endif /* _STLP_LOCALE */\r
-\r
-\r
-// Local Variables:\r
-// mode:C++\r
-// End:\r
+/*
+ * Copyright (c) 1999
+ * Silicon Graphics Computer Systems, Inc.
+ *
+ * Copyright (c) 1999
+ * Boris Fomitchev
+ *
+ * This material is provided "as is", with absolutely no warranty expressed
+ * or implied. Any use is at your own risk.
+ *
+ * Permission to use or copy this software for any purpose is hereby granted
+ * without fee, provided the above notices are retained on all copies.
+ * Permission to modify the code and to distribute modified code is granted,
+ * provided the above notices are retained, and a notice that the code was
+ * modified is included with the above copyright notice.
+ *
+ */
+#ifndef _STLP_LOCALE
+
+// Basic framework: class locale and class locale::facet
+
+#ifndef _STLP_OUTERMOST_HEADER_ID
+#  define _STLP_OUTERMOST_HEADER_ID 0x1041
+#  include <stl/_prolog.h>
+#  define _STLP_LOCALE
+#endif
+
+#if (_STLP_OUTERMOST_HEADER_ID == 0x1041) && \
+   !(defined (_STLP_NO_IOSTREAMS) && defined (_STLP_IMPORT_VENDOR_STD))
+#  include <stl/_ioserr.h>
+
+// Individual facets
+#  ifndef _STLP_INTERNAL_CTYPE_H
+#    include <stl/_ctype.h>
+#  endif
+
+#  ifndef _STLP_INTERNAL_CODECVT_H
+#    include <stl/_codecvt.h>
+#  endif
+
+#  ifndef _STLP_INTERNAL_COLLATE_H
+#    include <stl/_collate.h>
+#  endif
+
+#  ifndef _STLP_INTERNAL_NUM_PUT_H
+#    include <stl/_num_put.h>
+#  endif
+
+#  ifndef _STLP_INTERNAL_NUM_GET_H
+#    include <stl/_num_get.h>
+#  endif
+
+// those never included separately anyway
+#  include <stl/_monetary.h>
+#  include <stl/_time_facets.h>
+#  include <stl/_messages_facets.h>
+
+// some stuff for streambuf iterators ended up defined there
+// Strictly speaking, _istream.h portion is only required for <iterator>, but it may break too many
+// programs if we omit it
+#  ifndef _STLP_ISTREAM_H
+#    include <stl/_istream.h>
+#  endif
+
+// Convenience interfaces
+#undef isspace
+#undef isprint
+#undef iscntrl
+#undef isupper
+#undef islower
+#undef isalpha
+#undef isdigit
+#undef ispunct
+#undef isxdigit
+#undef isalnum
+#undef isgraph
+#undef toupper
+#undef tolower
+
+_STLP_BEGIN_NAMESPACE
+
+template <class _CharT> 
+inline bool isspace (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::space, c); }
+
+template <class _CharT> 
+inline bool isprint (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::print, c); }
+
+template <class _CharT> 
+inline bool iscntrl (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::cntrl, c); }
+
+template <class _CharT> 
+inline bool isupper (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::upper, c); }
+
+template <class _CharT> 
+inline bool islower (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::lower, c); }
+
+template <class _CharT> 
+inline bool isalpha (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::alpha, c); }
+
+template <class _CharT> 
+inline bool isdigit (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::digit, c); }
+
+template <class _CharT> 
+inline bool ispunct (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::punct, c); }
+
+template <class _CharT> 
+inline bool isxdigit (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::xdigit, c); }
+
+template <class _CharT> 
+inline bool isalnum (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::alnum, c); }
+
+template <class _CharT> 
+inline bool isgraph (_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).is(ctype_base::graph, c); }
+
+template <class _CharT>
+inline _CharT toupper(_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).toupper(c); }
+
+template <class _CharT>
+inline _CharT tolower(_CharT c, const locale& loc)
+{ return (use_facet<ctype<_CharT> >(loc)).tolower(c); }
+
+_STLP_END_NAMESPACE
+
+#endif
+
+#if (_STLP_OUTERMOST_HEADER_ID != 0x1041) || defined (_STLP_IMPORT_VENDOR_STD)
+#  if defined (_STLP_HAS_INCLUDE_NEXT)
+#    include_next <locale>
+#  else
+#    include _STLP_NATIVE_HEADER(locale)
+#  endif
+#endif
+
+#if (_STLP_OUTERMOST_HEADER_ID == 0x1041)
+#  include <stl/_epilog.h>
+#  undef _STLP_OUTERMOST_HEADER_ID
+#endif
+
+#endif /* _STLP_LOCALE */
+
+
+// Local Variables:
+// mode:C++
+// End: