00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00040 #ifndef _LOCALE_FWD_H
00041 #define _LOCALE_FWD_H 1
00042 
00043 #pragma GCC system_header
00044 
00045 #include <bits/c++config.h>
00046 #include <bits/c++locale.h>     
00047 #include <iosfwd>       
00048 #include <bits/functexcept.h>
00049 
00050 namespace std
00051 {
00052   
00053   class locale;
00054 
00055   
00056   template<typename _CharT>
00057     inline bool
00058     isspace(_CharT, const locale&);
00059 
00060   template<typename _CharT>
00061     inline bool
00062     isprint(_CharT, const locale&);
00063 
00064   template<typename _CharT>
00065     inline bool
00066     iscntrl(_CharT, const locale&);
00067 
00068   template<typename _CharT>
00069     inline bool
00070     isupper(_CharT, const locale&);
00071 
00072   template<typename _CharT>
00073     inline bool
00074     islower(_CharT, const locale&);
00075 
00076   template<typename _CharT>
00077     inline bool
00078     isalpha(_CharT, const locale&);
00079 
00080   template<typename _CharT>
00081     inline bool
00082     isdigit(_CharT, const locale&);
00083 
00084   template<typename _CharT>
00085     inline bool
00086     ispunct(_CharT, const locale&);
00087 
00088   template<typename _CharT>
00089     inline bool
00090     isxdigit(_CharT, const locale&);
00091 
00092   template<typename _CharT>
00093     inline bool
00094     isalnum(_CharT, const locale&);
00095 
00096   template<typename _CharT>
00097     inline bool
00098     isgraph(_CharT, const locale&);
00099 
00100   template<typename _CharT>
00101     inline _CharT
00102     toupper(_CharT, const locale&);
00103 
00104   template<typename _CharT>
00105     inline _CharT
00106     tolower(_CharT, const locale&);
00107 
00108   
00109   class ctype_base;
00110   template<typename _CharT>
00111     class ctype;
00112   template<> class ctype<char>;
00113 #ifdef _GLIBCXX_USE_WCHAR_T
00114   template<> class ctype<wchar_t>;
00115 #endif
00116   template<typename _CharT>
00117     class ctype_byname;
00118   
00119 
00120   class codecvt_base;
00121   class __enc_traits;
00122   template<typename _InternT, typename _ExternT, typename _StateT>
00123     class codecvt;
00124   template<> class codecvt<char, char, mbstate_t>;
00125 #ifdef _GLIBCXX_USE_WCHAR_T
00126   template<> class codecvt<wchar_t, char, mbstate_t>;
00127 #endif
00128   template<typename _InternT, typename _ExternT, typename _StateT>
00129     class codecvt_byname;
00130 
00131   
00132 _GLIBCXX_BEGIN_LDBL_NAMESPACE
00133   template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
00134     class num_get;
00135   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
00136     class num_put;
00137 _GLIBCXX_END_LDBL_NAMESPACE
00138   template<typename _CharT> class numpunct;
00139   template<typename _CharT> class numpunct_byname;
00140 
00141   
00142   template<typename _CharT>
00143     class collate;
00144   template<typename _CharT> class
00145     collate_byname;
00146 
00147   
00148   class time_base;
00149   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
00150     class time_get;
00151   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
00152     class time_get_byname;
00153   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
00154     class time_put;
00155   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
00156     class time_put_byname;
00157 
00158   
00159   class money_base;
00160 _GLIBCXX_BEGIN_LDBL_NAMESPACE
00161   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
00162     class money_get;
00163   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
00164     class money_put;
00165 _GLIBCXX_END_LDBL_NAMESPACE
00166   template<typename _CharT, bool _Intl = false>
00167     class moneypunct;
00168   template<typename _CharT, bool _Intl = false>
00169     class moneypunct_byname;
00170 
00171   
00172   class messages_base;
00173   template<typename _CharT>
00174     class messages;
00175   template<typename _CharT>
00176     class messages_byname;
00177 
00178   template<typename _Facet>
00179     bool
00180     has_facet(const locale& __loc) throw();
00181 
00182   template<typename _Facet>
00183     const _Facet&
00184     use_facet(const locale& __loc);
00185 
00186   template<typename _Facet>
00187     inline const _Facet&
00188     __check_facet(const _Facet* __f)
00189     {
00190       if (!__f)
00191     __throw_bad_cast();
00192       return *__f;
00193     }
00194 } 
00195 
00196 #endif