OSDN Git Service

* configure.in (toplevel_srcdir, auxdir): Set.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / src / locale-inst.cc
index d17f332..c67dd04 100644 (file)
@@ -1,6 +1,6 @@
 // Locale support -*- C++ -*-
 
-// Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -35,7 +35,7 @@
 #include <bits/std_cstring.h>
 #include <bits/std_cassert.h>
 #include <bits/std_limits.h>
-#include <bits/std_exception.h>
+#include <exception>
 #include <bits/std_stdexcept.h>
 #include <bits/std_locale.h>
 #include <bits/locale_facets.tcc>
@@ -50,15 +50,10 @@ namespace std {
   typedef istreambuf_iterator<wchar_t, char_traits<wchar_t> > wibuf_iterator;
 
   // moneypunct, money_get, and money_put
-
-  const money_base::pattern
-    money_base::__default_pattern = {{symbol, sign, none, value}};
-
   template class moneypunct<char, false>;
   template class moneypunct<char, true>;
   template class moneypunct_byname<char, false>;
   template class moneypunct_byname<char, true>;
-  template class _Moneypunct<char>;
   template class money_get<char, obuf_iterator>;
   template class money_put<char, obuf_iterator>;
   template class money_get<char, ibuf_iterator>;
@@ -70,7 +65,6 @@ namespace std {
   template class moneypunct<wchar_t, true>;
   template class moneypunct_byname<wchar_t, false>;
   template class moneypunct_byname<wchar_t, true>;
-  template class _Moneypunct<wchar_t>;
   template class money_get<wchar_t, wobuf_iterator>;
   template class money_put<wchar_t, wobuf_iterator>;
   template class money_get<wchar_t, wibuf_iterator>;
@@ -81,77 +75,59 @@ namespace std {
   // numpunct, numpunct_byname, num_get, and num_put
   template class numpunct<char>;
   template class numpunct_byname<char>;
-  template class _Numpunct<char>;
   template class num_get<char, ibuf_iterator>;
   template class num_put<char, obuf_iterator>;
 #ifdef _GLIBCPP_USE_WCHAR_T
   template class numpunct<wchar_t>;
   template class numpunct_byname<wchar_t>;
-  template class _Numpunct<wchar_t>;
   template class num_get<wchar_t, wibuf_iterator>;
   template class num_put<wchar_t, wobuf_iterator>;
 #endif
 
-  // _Punct
-  template class _Punct<char>;
-#ifdef _GLIBCPP_USE_WCHAR_T
-  template class _Punct<wchar_t>;
-#endif
-  
   // time_get and time_put
-  //template class time_get<char, obuf_iterator>;
   template class time_put<char, obuf_iterator>;
+  template class time_put_byname<char, obuf_iterator>;
   template class time_get<char, ibuf_iterator>;
-  template class time_put<char, ibuf_iterator>;
+  template class time_get_byname<char, ibuf_iterator>;
+
 #ifdef _GLIBCPP_USE_WCHAR_T
-  //template class time_get<wchar_t, wobuf_iterator>;
   template class time_put<wchar_t, wobuf_iterator>;
+  template class time_put_byname<wchar_t, wobuf_iterator>;
   template class time_get<wchar_t, wibuf_iterator>;
-  template class time_put<wchar_t, wibuf_iterator>;
+  template class time_get_byname<wchar_t, wibuf_iterator>;
 #endif
 
   // messages
-  template class _Messages<char>;
   template class messages<char>;
   template class messages_byname<char>;
 #ifdef _GLIBCPP_USE_WCHAR_T
-  template class _Messages<wchar_t>;
   template class messages<wchar_t>;
   template class messages_byname<wchar_t>;
 #endif
   
   // ctype
-  //  template class ctype<unsigned char>; // No definitions avail.
-  //  template class ctype<signed char>; // No definitions avail.
-  template class _Ctype<char>;
-  template class _Ctype_nois<char>;
+  template class __ctype_abstract_base<char>;
   template class ctype_byname<char>;
 #ifdef _GLIBCPP_USE_WCHAR_T
-  template class _Ctype<wchar_t>;
-  template class _Ctype_nois<wchar_t>;
+  template class __ctype_abstract_base<wchar_t>;
   template class ctype_byname<wchar_t>;
 #endif
   
   // codecvt
   template class __codecvt_abstract_base<char, char, mbstate_t>;
   template class __codecvt_abstract_base<wchar_t, char, mbstate_t>;
+  template class codecvt_byname<char, char, mbstate_t>;
 #ifdef _GLIBCPP_USE_WCHAR_T
-  typedef unsigned short                       unicode_t;
-  template
-    const codecvt<unicode_t, char, __enc_traits>& 
-    use_facet<codecvt<unicode_t, char, __enc_traits> >(const locale&);
-  template 
-    bool
-    has_facet<codecvt<unicode_t, char, __enc_traits> >(const locale &);
+  template class codecvt_byname<wchar_t, char, mbstate_t>;
 #endif
 
   // collate
-  template class _Collate<char>;
+  template class collate<char>;
   template class collate_byname<char>;
   template class _Weekdaynames<char, int>;
   template class _Monthnames<char, int>;
 #ifdef _GLIBCPP_USE_WCHAR_T
-  template class _Collate<wchar_t>;
+  template class collate<wchar_t>;
   template class collate_byname<wchar_t>;
   template class _Weekdaynames<wchar_t, int>;
   template class _Monthnames<wchar_t, int>;
@@ -165,15 +141,8 @@ namespace std {
     const num_get<char, ibuf_iterator >& 
     use_facet<num_get<char, ibuf_iterator> >(const locale &);
   template
-    const ctype<char>&
-    use_facet<ctype<char> >(const locale& __loc);
-  template
     const codecvt<char, char, mbstate_t>& 
     use_facet<codecvt<char, char, mbstate_t> >(const locale&);
-   template 
-    const num_put<char, obuf_iterator>& 
-    _Use_facet_failure_handler<num_put<char, obuf_iterator> >
-    (const locale &);
 #ifdef _GLIBCPP_USE_WCHAR_T
   template 
     const num_put<wchar_t, wobuf_iterator>& 
@@ -182,15 +151,8 @@ namespace std {
     const num_get<wchar_t, wibuf_iterator>& 
     use_facet<num_get<wchar_t, wibuf_iterator> >(const locale &);
   template
-    const ctype<wchar_t>&
-    use_facet<ctype<wchar_t> >(const locale& __loc);
-  template
     const codecvt<wchar_t, char, mbstate_t>& 
     use_facet<codecvt<wchar_t, char, mbstate_t> >(locale const &);
-  template 
-    const num_put<wchar_t, wobuf_iterator>& 
-    _Use_facet_failure_handler<num_put<wchar_t, wobuf_iterator> >
-    (const locale &);
 #endif
 
   // has_facet
@@ -212,6 +174,12 @@ namespace std {
     vec_pfacet::
     insert(vec_pfacet::iterator, vec_pfacet::size_type, 
           const vec_pfacet::value_type&);
+  template 
+    void 
+    vec_pfacet::
+    _M_fill_insert(vec_pfacet::iterator, vec_pfacet::size_type, 
+                  const vec_pfacet::value_type&);
+
 
   typedef istreambuf_iterator<char, char_traits<char> > istreambuf_iter;
   typedef ostreambuf_iterator<char, char_traits<char> > ostreambuf_iter;
@@ -308,12 +276,11 @@ namespace std {
   template 
     locale::facet** 
     fill_n<locale::facet**, unsigned int, locale::facet*>
-    (locale::facet**, unsigned int, locale::facet* const &);
+    (locale::facet**, unsigned int, locale::facet* const&);
 
+  template 
+    locale::facet** 
+    fill_n<locale::facet**, unsigned long, locale::facet*>
+    (locale::facet**, unsigned long, locale::facet* const&);
 } //std
 
-
-
-
-
-