OSDN Git Service

2010-05-20 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / src / locale-inst.cc
index 324b07e..0418c6f 100644 (file)
@@ -1,11 +1,12 @@
 // Locale support -*- C++ -*-
 
-// Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+// 2009 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
 // terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
+// Free Software Foundation; either version 3, or (at your option)
 // any later version.
 
 // This library is distributed in the hope that it will be useful,
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
 
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING.  If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-// USA.
+// Under Section 7 of GPL version 3, you are granted additional
+// permissions described in the GCC Runtime Library Exception, version
+// 3.1, as published by the Free Software Foundation.
 
-// As a special exception, you may use this file as part of a free software
-// library without restriction.  Specifically, if other files instantiate
-// templates or use macros or inline functions from this file, or you compile
-// this file and link it with other files to produce an executable, this
-// file does not by itself cause the resulting executable to be covered by
-// the GNU General Public License.  This exception does not however
-// invalidate any other reasons why the executable file might be covered by
-// the GNU General Public License.
+// You should have received a copy of the GNU General Public License and
+// a copy of the GCC Runtime Library Exception along with this program;
+// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
+// <http://www.gnu.org/licenses/>.
 
 //
 // ISO C++ 14882: 22.1  Locales
 //
 
-#include <cstdlib>
-#include <clocale>
-#include <cstring>
-#include <cassert>
-#include <limits>
-#include <exception>
 #include <locale>
-#include <istream>
-#include <ostream>
 
-namespace std
-{
-  typedef ostreambuf_iterator<char> obuf_iterator;
-  typedef istreambuf_iterator<char> ibuf_iterator;
-  typedef ostreambuf_iterator<wchar_t> wobuf_iterator;
-  typedef istreambuf_iterator<wchar_t> wibuf_iterator;
-
-  // moneypunct, money_get, and money_put
-  template class moneypunct<char, false>;
-  template class moneypunct<char, true>;
-  template class moneypunct_byname<char, false>;
-  template class moneypunct_byname<char, true>;
-  template class money_get<char, ibuf_iterator>;
-  template class money_put<char, obuf_iterator>;
-
-#ifdef _GLIBCPP_USE_WCHAR_T
-  template class moneypunct<wchar_t, false>;
-  template class moneypunct<wchar_t, true>;
-  template class moneypunct_byname<wchar_t, false>;
-  template class moneypunct_byname<wchar_t, true>;
-  template class money_get<wchar_t, wibuf_iterator>;
-  template class money_put<wchar_t, wobuf_iterator>;
+// Instantiation configuration.
+#ifndef C
+# define C char
+# define C_is_char
 #endif
 
-  // numpunct, numpunct_byname, num_get, and num_put
-  template class numpunct<char>;
-  template class numpunct_byname<char>;
-  template class num_get<char, ibuf_iterator>;
-  template class num_put<char, obuf_iterator>; 
-  template
-    obuf_iterator
-    num_put<char, obuf_iterator>::
-    _M_convert_int(obuf_iterator, ios_base&, char, char, char, long) const;
-
-  template
-    obuf_iterator
-    num_put<char, obuf_iterator>::
-    _M_convert_int(obuf_iterator, ios_base&, char, char, char, 
-                  unsigned long) const;
+_GLIBCXX_BEGIN_NAMESPACE(std)
 
-#ifdef _GLIBCPP_USE_LONG_LONG
+  // moneypunct, money_get, and money_put
+  template class moneypunct<C, false>;
+  template class moneypunct<C, true>;
+  template struct __moneypunct_cache<C, false>;
+  template struct __moneypunct_cache<C, true>;
+  template class moneypunct_byname<C, false>;
+  template class moneypunct_byname<C, true>;
+_GLIBCXX_BEGIN_LDBL_NAMESPACE
+  template class money_get<C, istreambuf_iterator<C> >;
+  template class money_put<C, ostreambuf_iterator<C> >;
   template
-    obuf_iterator
-    num_put<char, obuf_iterator>::
-    _M_convert_int(obuf_iterator, ios_base&, char, char, char, 
-                  long long) const;
+    istreambuf_iterator<C>
+    money_get<C, istreambuf_iterator<C> >::
+    _M_extract<true>(istreambuf_iterator<C>, istreambuf_iterator<C>,
+                    ios_base&, ios_base::iostate&, string&) const;
 
   template
-    obuf_iterator
-    num_put<char, obuf_iterator>::
-    _M_convert_int(obuf_iterator, ios_base&, char, char, char,
-                  unsigned long long) const;
-#endif
+    istreambuf_iterator<C>
+    money_get<C, istreambuf_iterator<C> >::
+    _M_extract<false>(istreambuf_iterator<C>, istreambuf_iterator<C>,
+                     ios_base&, ios_base::iostate&, string&) const;
 
   template
-    obuf_iterator
-    num_put<char, obuf_iterator>::
-    _M_convert_float(obuf_iterator, ios_base&, char, char, double) const;
+    ostreambuf_iterator<C>
+    money_put<C, ostreambuf_iterator<C> >::
+    _M_insert<true>(ostreambuf_iterator<C>, ios_base&, C, 
+                   const string_type&) const;
 
   template
-    obuf_iterator
-    num_put<char, obuf_iterator>::
-    _M_convert_float(obuf_iterator, ios_base&, char, char, 
-                   long double) const;
+    ostreambuf_iterator<C>
+    money_put<C, ostreambuf_iterator<C> >::
+    _M_insert<false>(ostreambuf_iterator<C>, ios_base&, C, 
+                    const string_type&) const;
+_GLIBCXX_END_LDBL_NAMESPACE
 
-#ifdef _GLIBCPP_USE_WCHAR_T
-  template class numpunct<wchar_t>;
-  template class numpunct_byname<wchar_t>;
-  template class num_get<wchar_t, wibuf_iterator>;
-  template class num_put<wchar_t, wobuf_iterator>;
+  // numpunct, numpunct_byname, num_get, and num_put
+  template class numpunct<C>;
+  template struct __numpunct_cache<C>;
+  template class numpunct_byname<C>;
+_GLIBCXX_BEGIN_LDBL_NAMESPACE
+  template class num_get<C, istreambuf_iterator<C> >;
+  template class num_put<C, ostreambuf_iterator<C> >; 
+  template
+    istreambuf_iterator<C>
+    num_get<C, istreambuf_iterator<C> >::
+    _M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
+                  ios_base&, ios_base::iostate&,
+                  long&) const;
+
+  template
+    istreambuf_iterator<C>
+    num_get<C, istreambuf_iterator<C> >::
+    _M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
+                  ios_base&, ios_base::iostate&, 
+                  unsigned short&) const;
+
+  template
+    istreambuf_iterator<C>
+    num_get<C, istreambuf_iterator<C> >::
+    _M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
+                  ios_base&, ios_base::iostate&,
+                  unsigned int&) const;
+
+  template
+    istreambuf_iterator<C>
+    num_get<C, istreambuf_iterator<C> >::
+    _M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
+                  ios_base&, ios_base::iostate&,
+                  unsigned long&) const;
+
+#ifdef _GLIBCXX_USE_LONG_LONG
+  template
+    istreambuf_iterator<C>
+    num_get<C, istreambuf_iterator<C> >::
+    _M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
+                  ios_base&, ios_base::iostate&,
+                  long long&) const;
+
+  template
+    istreambuf_iterator<C>
+    num_get<C, istreambuf_iterator<C> >::
+    _M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
+                  ios_base&, ios_base::iostate&,
+                  unsigned long long&) const;
+#endif
 
   template
-    wobuf_iterator
-    num_put<wchar_t, wobuf_iterator>::
-    _M_convert_int(wobuf_iterator, ios_base&, wchar_t, char, char, long) const;
+    ostreambuf_iterator<C>
+    num_put<C, ostreambuf_iterator<C> >::
+    _M_insert_int(ostreambuf_iterator<C>, ios_base&, C, 
+                 long) const;
 
   template
-    wobuf_iterator
-    num_put<wchar_t, wobuf_iterator>::
-    _M_convert_int(wobuf_iterator, ios_base&, wchar_t, char, char,
-                  unsigned long) const;
+    ostreambuf_iterator<C>
+    num_put<C, ostreambuf_iterator<C> >::
+    _M_insert_int(ostreambuf_iterator<C>, ios_base&, C, 
+                 unsigned long) const;
 
-#ifdef _GLIBCPP_USE_LONG_LONG
+#ifdef _GLIBCXX_USE_LONG_LONG
   template
-    wobuf_iterator
-    num_put<wchar_t, wobuf_iterator>::
-    _M_convert_int(wobuf_iterator, ios_base&, wchar_t, char, char,
-                  long long) const;
+    ostreambuf_iterator<C>
+    num_put<C, ostreambuf_iterator<C> >::
+    _M_insert_int(ostreambuf_iterator<C>, ios_base&, C, 
+                 long long) const;
 
   template
-    wobuf_iterator
-    num_put<wchar_t, wobuf_iterator>::
-    _M_convert_int(wobuf_iterator, ios_base&, wchar_t, char, char,
-                  unsigned long long) const;
+    ostreambuf_iterator<C>
+    num_put<C, ostreambuf_iterator<C> >::
+    _M_insert_int(ostreambuf_iterator<C>, ios_base&, C, 
+                 unsigned long long) const;
 #endif
 
   template
-    wobuf_iterator
-    num_put<wchar_t, wobuf_iterator>::
-    _M_convert_float(wobuf_iterator, ios_base&, wchar_t, char, 
-                    double) const;
+    ostreambuf_iterator<C>
+    num_put<C, ostreambuf_iterator<C> >::
+    _M_insert_float(ostreambuf_iterator<C>, ios_base&, C, char, 
+                   double) const;
 
   template
-    wobuf_iterator
-    num_put<wchar_t, wobuf_iterator>::
-    _M_convert_float(wobuf_iterator, ios_base&, wchar_t, char, 
-                    long double) const;
-#endif
+    ostreambuf_iterator<C>
+    num_put<C, ostreambuf_iterator<C> >::
+    _M_insert_float(ostreambuf_iterator<C>, ios_base&, C, char, 
+                   long double) const;
+_GLIBCXX_END_LDBL_NAMESPACE
 
   // time_get and time_put
-  template class __timepunct<char>;
-  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_get_byname<char, ibuf_iterator>;
-
-#ifdef _GLIBCPP_USE_WCHAR_T
-  template class __timepunct<wchar_t>;
-  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_get_byname<wchar_t, wibuf_iterator>;
-#endif
+  template class __timepunct<C>;
+  template struct __timepunct_cache<C>;
+  template class time_put<C, ostreambuf_iterator<C> >;
+  template class time_put_byname<C, ostreambuf_iterator<C> >;
+  template class time_get<C, istreambuf_iterator<C> >;
+  template class time_get_byname<C, istreambuf_iterator<C> >;
 
   // messages
-  template class messages<char>;
-  template class messages_byname<char>;
-#ifdef _GLIBCPP_USE_WCHAR_T
-  template class messages<wchar_t>;
-  template class messages_byname<wchar_t>;
-#endif
+  template class messages<C>;
+  template class messages_byname<C>;
   
   // ctype
-  inline template class __ctype_abstract_base<char>;
-  template class ctype_byname<char>;
-#ifdef _GLIBCPP_USE_WCHAR_T
-  inline template class __ctype_abstract_base<wchar_t>;
-  template class ctype_byname<wchar_t>;
-#endif
+  inline template class __ctype_abstract_base<C>;
+  template class ctype_byname<C>;
   
   // codecvt
-  inline template class __codecvt_abstract_base<char, char, mbstate_t>;
-  inline template class __codecvt_abstract_base<wchar_t, char, mbstate_t>;
-  template class codecvt_byname<char, char, mbstate_t>;
-#ifdef _GLIBCPP_USE_WCHAR_T
-  template class codecvt_byname<wchar_t, char, mbstate_t>;
-#endif
+  inline template class __codecvt_abstract_base<C, char, mbstate_t>;
+  template class codecvt_byname<C, char, mbstate_t>;
 
   // collate
-  template class collate<char>;
-  template class collate_byname<char>;
-#ifdef _GLIBCPP_USE_WCHAR_T
-  template class collate<wchar_t>;
-  template class collate_byname<wchar_t>;
-#endif
+  template class collate<C>;
+  template class collate_byname<C>;
     
   // use_facet
   template
-    const numpunct<char>& 
-    use_facet<numpunct<char> >(const locale&);
-
-  template 
-    const num_put<char, obuf_iterator >& 
-    use_facet<num_put<char, obuf_iterator> >(const locale&);
-
-  template 
-    const num_get<char, ibuf_iterator >& 
-    use_facet<num_get<char, ibuf_iterator> >(const locale&);
+    const ctype<C>& 
+    use_facet<ctype<C> >(const locale&);
 
   template
-    const codecvt<char, char, mbstate_t>& 
-    use_facet<codecvt<char, char, mbstate_t> >(const locale&);
+    const codecvt<C, char, mbstate_t>& 
+    use_facet<codecvt<C, char, mbstate_t> >(const locale&);
 
   template
-    const collate<char>& 
-    use_facet<collate<char> >(const locale&);
+    const collate<C>& 
+    use_facet<collate<C> >(const locale&);
 
   template
-    const moneypunct<char, true>& 
-    use_facet<moneypunct<char, true> >(const locale&);
+    const numpunct<C>& 
+    use_facet<numpunct<C> >(const locale&);
 
-  template
-    const moneypunct<char, false>& 
-    use_facet<moneypunct<char, false> >(const locale&);
+  template 
+    const num_put<C>& 
+    use_facet<num_put<C> >(const locale&);
+
+  template 
+    const num_get<C>& 
+    use_facet<num_get<C> >(const locale&);
 
   template
-    const __timepunct<char>& 
-    use_facet<__timepunct<char> >(const locale&);
+    const moneypunct<C, true>& 
+    use_facet<moneypunct<C, true> >(const locale&);
 
-#ifdef _GLIBCPP_USE_WCHAR_T
   template
-    const numpunct<wchar_t>& 
-    use_facet<numpunct<wchar_t> >(const locale&);
+    const moneypunct<C, false>& 
+    use_facet<moneypunct<C, false> >(const locale&);
 
   template 
-    const num_put<wchar_t, wobuf_iterator>& 
-    use_facet<num_put<wchar_t, wobuf_iterator> >(const locale&);
+    const money_put<C>& 
+    use_facet<money_put<C> >(const locale&);
 
   template 
-    const num_get<wchar_t, wibuf_iterator>& 
-    use_facet<num_get<wchar_t, wibuf_iterator> >(const locale&);
-
-  template
-    const codecvt<wchar_t, char, mbstate_t>& 
-    use_facet<codecvt<wchar_t, char, mbstate_t> >(locale const&);
+    const money_get<C>& 
+    use_facet<money_get<C> >(const locale&);
 
   template
-    const collate<wchar_t>& 
-    use_facet<collate<wchar_t> >(const locale&);
+    const __timepunct<C>& 
+    use_facet<__timepunct<C> >(const locale&);
 
-  template
-    const moneypunct<wchar_t, true>& 
-    use_facet<moneypunct<wchar_t, true> >(const locale&);
+  template 
+    const time_put<C>& 
+    use_facet<time_put<C> >(const locale&);
 
-  template
-    const moneypunct<wchar_t, false>& 
-    use_facet<moneypunct<wchar_t, false> >(const locale&);
+  template 
+    const time_get<C>& 
+    use_facet<time_get<C> >(const locale&);
 
-  template
-    const __timepunct<wchar_t>& 
-    use_facet<__timepunct<wchar_t> >(const locale&);
-#endif
+  template 
+    const messages<C>& 
+    use_facet<messages<C> >(const locale&);
 
   // has_facet
   template 
     bool
-    has_facet<numpunct<char> >(const locale&);
+    has_facet<ctype<C> >(const locale&);
+
   template 
     bool
-    has_facet<num_put<char> >(const locale&);
+    has_facet<codecvt<C, char, mbstate_t> >(const locale&);
+
   template 
     bool
-    has_facet<num_get<char> >(const locale&);
+    has_facet<collate<C> >(const locale&);
+
   template 
     bool
-    has_facet<ctype<char> >(const locale&);
+    has_facet<numpunct<C> >(const locale&);
 
-#ifdef _GLIBCPP_USE_WCHAR_T
   template 
     bool
-    has_facet<numpunct<wchar_t> >(const locale&);
+    has_facet<num_put<C> >(const locale&);
+
   template 
     bool
-    has_facet<num_put<wchar_t> >(const locale&);
+    has_facet<num_get<C> >(const locale&);
+
   template 
     bool
-    has_facet<num_get<wchar_t> >(const locale&);
+    has_facet<moneypunct<C> >(const locale&);
+
   template 
     bool
-    has_facet<ctype<wchar_t> >(const locale&);
-#endif
+    has_facet<money_put<C> >(const locale&);
 
-  //
-  // iterator
-  //
-  typedef vector<locale::facet*> vec_pfacet;
   template 
-    void 
-    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&);
-
-
-  //
-  // locale
-  //
-  typedef istreambuf_iterator<char, char_traits<char> > istreambuf_iter;
-  typedef ostreambuf_iterator<char, char_traits<char> > ostreambuf_iter;
-
-#ifdef _GLIBCPP_USE_WCHAR_T
-  typedef istreambuf_iterator<wchar_t, char_traits<wchar_t> > wistreambuf_iter;
-  typedef ostreambuf_iterator<wchar_t, char_traits<wchar_t> > wostreambuf_iter;
-#endif
+    bool
+    has_facet<money_get<C> >(const locale&);
 
   template 
     bool
-    locale::operator()(const string&, const string&) const;
-
-  template
-    char*
-    __add_grouping<char>(char*, char, char const*, char const*, 
-                        char const*, char const*);
+    has_facet<__timepunct<C> >(const locale&);
 
-  template
+  template 
     bool
-    __verify_grouping<char>(const basic_string<char>&, basic_string<char>&);
-
-  template
-    void 
-    __pad<char>(ios_base&, char, char*, const char *, streamsize, 
-               streamsize, const bool);
+    has_facet<time_put<C> >(const locale&);
 
-  template
-    void 
-    __pad<char, char_traits<char> >(ios_base&, char, char*, const char *, 
-                                   streamsize, streamsize, const bool);
-
-#ifdef _GLIBCPP_USE_WCHAR_T
   template 
     bool
-    locale::operator()(const wstring&, const wstring&) const;
-
-  typedef ostreambuf_iterator<wchar_t> wostreambuf_iter;
+    has_facet<time_get<C> >(const locale&);
 
-  template
-    wchar_t*
-    __add_grouping<wchar_t>(wchar_t*, wchar_t, char const*, char const*, 
-                           wchar_t const*, wchar_t const*);
-  template
+  template 
     bool
-    __verify_grouping<wchar_t>(const basic_string<wchar_t>&, 
-                              basic_string<wchar_t>&);
-
-  template
-    void 
-    __pad<wchar_t>(ios_base&, wchar_t, wchar_t*, const wchar_t*, 
-                  streamsize, streamsize, const bool);
-
-  template
-    void 
-    __pad<wchar_t, char_traits<wchar_t> >(ios_base&, wchar_t, wchar_t*, 
-                                         const wchar_t*, streamsize, 
-                                         streamsize, const bool);
-#endif // _GLIBCPP_USE_WCHAR_T
+    has_facet<messages<C> >(const locale&);
 
-  template
-    int
-    __convert_from_v(char*, const char*, double, const __c_locale&, int);
 
+  // locale functions.
   template
-    int
-    __convert_from_v(char*, const char*, long double, const __c_locale&, int);
+    C*
+    __add_grouping<C>(C*, C, char const*, size_t, 
+                        C const*, C const*);
 
-  template
-    int
-    __convert_from_v(char*, const char*, long, const __c_locale&, int);
+  template class __pad<C, char_traits<C> >;
 
   template
     int
-    __convert_from_v(char*, const char*, unsigned long, 
-                    const __c_locale&, int);
+    __int_to_char(C*, unsigned long, const C*,
+                 ios_base::fmtflags, bool);
 
+#ifdef _GLIBCXX_USE_LONG_LONG
   template
     int
-    __convert_from_v(char*, const char*, long long, const __c_locale&, int);
-
-  template
-    int
-    __convert_from_v(char*, const char*, unsigned long long, 
-                    const __c_locale&, int);
-
-  template 
-    locale::facet** 
-    fill_n<locale::facet**, size_t, locale::facet*>
-    (locale::facet**, size_t, locale::facet* const&);
-
-  template
-    __normal_iterator<locale::facet**, vector<locale::facet*> >
-    fill_n(__normal_iterator<locale::facet**, vector<locale::facet*> >,
-          size_t, locale::facet* const&);
+    __int_to_char(C*, unsigned long long, const C*, 
+                 ios_base::fmtflags, bool);
+#endif
 
-  template
-    void
-    fill(__normal_iterator<locale::facet**, vector<locale::facet*> >,
-         __normal_iterator<locale::facet**, vector<locale::facet*> >,
-         locale::facet* const&);
-} // namespace std
+_GLIBCXX_END_NAMESPACE
+
+// XXX GLIBCXX_ABI Deprecated
+#if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined C_is_char
+
+#define _GLIBCXX_LDBL_COMPAT(dbl, ldbl) \
+  extern "C" void ldbl (void) __attribute__ ((alias (#dbl), weak))
+
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intIjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_,
+                    _ZNKSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intIjEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intIlEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_,
+                    _ZNKSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intIlEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intImEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_,
+                    _ZNKSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intImEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intItEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_,
+                    _ZNKSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intItEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intIxEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_,
+                    _ZNKSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intIxEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intIyEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_,
+                    _ZNKSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_intIyEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE13_M_insert_intIlEES4_S4_RSt8ios_basecT_,
+                    _ZNKSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE13_M_insert_intIlEES3_S3_RSt8ios_basecT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE13_M_insert_intImEES4_S4_RSt8ios_basecT_,
+                    _ZNKSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE13_M_insert_intImEES3_S3_RSt8ios_basecT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE13_M_insert_intIxEES4_S4_RSt8ios_basecT_,
+                    _ZNKSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE13_M_insert_intIxEES3_S3_RSt8ios_basecT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE13_M_insert_intIyEES4_S4_RSt8ios_basecT_,
+                    _ZNKSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE13_M_insert_intIyEES3_S3_RSt8ios_basecT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1287num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE15_M_insert_floatIdEES4_S4_RSt8ios_baseccT_,
+                    _ZNKSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE15_M_insert_floatIdEES3_S3_RSt8ios_baseccT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE15_M_insert_floatIdEES3_S3_RSt8ios_baseccT_,
+                    _ZNKSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE15_M_insert_floatIeEES3_S3_RSt8ios_baseccT_);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1289money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE10_M_extractILb0EEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRSs,
+                    _ZNKSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE10_M_extractILb0EEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRSs);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1289money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE10_M_extractILb1EEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRSs,
+                    _ZNKSt9money_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE10_M_extractILb1EEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRSs);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1289money_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE9_M_insertILb0EEES4_S4_RSt8ios_basecRKSs,
+                    _ZNKSt9money_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE9_M_insertILb0EEES3_S3_RSt8ios_basecRKSs);
+_GLIBCXX_LDBL_COMPAT(_ZNKSt17__gnu_cxx_ldbl1289money_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE9_M_insertILb1EEES4_S4_RSt8ios_basecRKSs,
+                    _ZNKSt9money_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE9_M_insertILb1EEES3_S3_RSt8ios_basecRKSs);
+
+#endif // _GLIBCXX_LONG_DOUBLE_COMPAT