2000-04-21 16:33:34 -04:00
|
|
|
// Locale support -*- C++ -*-
|
|
|
|
|
Preliminary named locales.
2001-01-29 Benjamin Kosnik <bkoz@redhat.com>
Preliminary named locales.
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
* aclocal.m4: Regenerate.
* configure.in: Use it.
* configure: Regerate.
* src/Makefile.am (sources): Add c++locale.cc.
(build_headers): Add c++locale.h.
* src/Makefile.in: Regenerate.
* config/c_locale_gnu.h: New file.
* config/c_locale_gnu.cc: New file. Non-inline member functions
for named locales, gnu-specific.
* config/c_locale_generic.h: New file.
* config/c_locale_generic.cc: New file. Non-inline member
functions for named locales, generic version.
* docs/html/configopts.html: Add documentation on new options.
* include/bits/locale_facets.h (class _Messages): Remove.
(class _Moneypunct): Remove.
* src/locale-inst.cc: Remove.
* include/bits/locale_facets.h (class _Collate): Remove.
* src/locale-inst.cc (std): Remove.
* src/locale.cc: And here.
* include/bits/localefwd.h (locale::_M_coalesce): New
function. Correctly put together multi-name locales.
(_Impl(const _Impl&, category, size_t)): Remove.
* include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
member functions.
(_M_normalize_category_names): Remove.
(_M_replace_categories): Fix.
* src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
(locale::_Impl::_M_construct_ctype): Remove.
(locale::_Impl::_M_construct_monetary): Remove.
(locale::_Impl::_M_construct_numeric): Remove.
(locale::_Impl::_M_construct_time): Remove.
(locale::_Impl::_M_construct_messages): Remove.
* include/bits/locale_facets.h (_Bad_use_facet): Remove.
(_Use_facet_failure_handle): Remove.
* src/locale.cc: Remove definitions.
* src/locale-inst.cc: And here.
* testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
* src/localename.cc (locale::facet::_S_create_c_locale): Properly
create and error-check underlying locale object.
(locale::facet::_S_destroy_c_locale): Add, take care of properly
tearing down underlying locale object.
* include/bits/localefwd.h (locale::facet): Declare.
* testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
correctness, as glibc apparently has incorrect info in it. Test
with it when it works again.....
* include/bits/localefwd.h (locale::_Impl::__vec_string):
Remove. Number of categories is fixed at six, so just simplify and
make this an array of strings.
(locale::_Impl::_M_has_name): Remove.
(locale::_Impl::_M_name): Remove.
(locale::_Impl::_M_category_names): Turns into...
(locale::_Impl::_M_names): ...this.
(locale::_Impl::_M_has_same_name()): New function.
* src/localename.cc (locale::_Impl::~_Impl()): Remove here.
(locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
signature.
* src/locale.cc (locale::name()): Construct mangled name
accurately reflecting combined locale categories.
* src/locale.cc (locale::classic()): Don't initialize here.
* src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
__refs, bool __has_name, string __str): Do it here.
* include/bits/localefwd.h: _S_categories_num to
_S_num_categories. _S_facets_num to _S_num_facets.
(locale::id::id()): Explicitly set _M_index to zero.
* src/locale.cc: Same.
* src/locale.cc: (locale::locale(const char*)): Construct named
locales uniquely.
* src/locale.cc: Remove numpunct_byname ctors.
* testsuite/22_locale/numpunct_byname.cc: New file.
* testsuite/22_locale/numpunct.cc: New file.
* include/bits/localefwd.h (class locale): Change data members to
protected, from private.
(_Impl::_M_get_c_locale): Add member function.
(locale::facet::_M_get_global_impl()): Add member function.
* include/bits/locale_facets.h (numpunct::_M_init): Change to take
a __c_locale pointer.
(numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
named locales.
* testsuite/22_locale/members.cc: New file, test name and combine.
* include/bits/locale_facets.h (class numpunct): Remove class
_Punct and _Numpunct. Rewrite class numpunct to be correct for
named locales.
* include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
* src/localename.cc (_Impl::~_Impl()): Call __frelocale.
(_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
* src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
* testsuite/22_locale/numpunct_char_members.cc: New file.
From-SVN: r39347
2001-01-30 04:18:51 -05:00
|
|
|
// Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
2000-04-21 16:33:34 -04:00
|
|
|
//
|
|
|
|
// 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)
|
|
|
|
// any later version.
|
|
|
|
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
//
|
|
|
|
// ISO C++ 14882: 22.1 Locales
|
|
|
|
//
|
|
|
|
|
|
|
|
#include <bits/std_clocale.h>
|
|
|
|
#include <bits/std_cstring.h>
|
|
|
|
#include <bits/std_cassert.h>
|
|
|
|
#include <bits/std_limits.h>
|
2000-10-10 19:50:39 -04:00
|
|
|
#include <exception>
|
2000-04-21 16:33:34 -04:00
|
|
|
#include <bits/std_stdexcept.h>
|
|
|
|
#include <bits/std_locale.h>
|
|
|
|
#include <bits/locale_facets.tcc>
|
|
|
|
#include <bits/std_istream.h>
|
|
|
|
#include <bits/std_ostream.h>
|
|
|
|
|
2001-03-04 16:34:02 -05:00
|
|
|
namespace std
|
|
|
|
{
|
2000-04-21 16:33:34 -04:00
|
|
|
typedef ostreambuf_iterator<char, char_traits<char> > obuf_iterator;
|
|
|
|
typedef istreambuf_iterator<char, char_traits<char> > ibuf_iterator;
|
|
|
|
typedef ostreambuf_iterator<wchar_t, char_traits<wchar_t> > wobuf_iterator;
|
|
|
|
typedef istreambuf_iterator<wchar_t, char_traits<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, obuf_iterator>;
|
|
|
|
template class money_put<char, obuf_iterator>;
|
|
|
|
template class money_get<char, ibuf_iterator>;
|
|
|
|
template class money_put<char, ibuf_iterator>;
|
|
|
|
template class _Format_cache<char>;
|
|
|
|
|
|
|
|
#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, wobuf_iterator>;
|
|
|
|
template class money_put<wchar_t, wobuf_iterator>;
|
|
|
|
template class money_get<wchar_t, wibuf_iterator>;
|
|
|
|
template class money_put<wchar_t, wibuf_iterator>;
|
|
|
|
template class _Format_cache<wchar_t>;
|
|
|
|
#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>;
|
|
|
|
#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>;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// time_get and time_put
|
|
|
|
template class time_put<char, obuf_iterator>;
|
2000-09-19 02:47:52 -04:00
|
|
|
template class time_put_byname<char, obuf_iterator>;
|
2000-04-21 16:33:34 -04:00
|
|
|
template class time_get<char, ibuf_iterator>;
|
2000-09-19 02:47:52 -04:00
|
|
|
template class time_get_byname<char, ibuf_iterator>;
|
|
|
|
|
2000-04-21 16:33:34 -04:00
|
|
|
#ifdef _GLIBCPP_USE_WCHAR_T
|
|
|
|
template class time_put<wchar_t, wobuf_iterator>;
|
2000-09-19 02:47:52 -04:00
|
|
|
template class time_put_byname<wchar_t, wobuf_iterator>;
|
2000-04-21 16:33:34 -04:00
|
|
|
template class time_get<wchar_t, wibuf_iterator>;
|
2000-09-19 02:47:52 -04:00
|
|
|
template class time_get_byname<wchar_t, wibuf_iterator>;
|
2000-04-21 16:33:34 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
|
|
// ctype
|
2000-12-07 01:44:49 -05:00
|
|
|
template class __ctype_abstract_base<char>;
|
2000-04-21 16:33:34 -04:00
|
|
|
template class ctype_byname<char>;
|
|
|
|
#ifdef _GLIBCPP_USE_WCHAR_T
|
2000-12-07 01:44:49 -05:00
|
|
|
template class __ctype_abstract_base<wchar_t>;
|
2000-04-21 16:33:34 -04:00
|
|
|
template class ctype_byname<wchar_t>;
|
|
|
|
#endif
|
|
|
|
|
2000-08-16 00:12:51 -04:00
|
|
|
// codecvt
|
|
|
|
template class __codecvt_abstract_base<char, char, mbstate_t>;
|
|
|
|
template class __codecvt_abstract_base<wchar_t, char, mbstate_t>;
|
2000-12-07 01:44:49 -05:00
|
|
|
template class codecvt_byname<char, char, mbstate_t>;
|
|
|
|
#ifdef _GLIBCPP_USE_WCHAR_T
|
|
|
|
template class codecvt_byname<wchar_t, char, mbstate_t>;
|
|
|
|
#endif
|
2000-08-16 00:12:51 -04:00
|
|
|
|
2000-04-21 16:33:34 -04:00
|
|
|
// collate
|
Preliminary named locales.
2001-01-29 Benjamin Kosnik <bkoz@redhat.com>
Preliminary named locales.
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
* aclocal.m4: Regenerate.
* configure.in: Use it.
* configure: Regerate.
* src/Makefile.am (sources): Add c++locale.cc.
(build_headers): Add c++locale.h.
* src/Makefile.in: Regenerate.
* config/c_locale_gnu.h: New file.
* config/c_locale_gnu.cc: New file. Non-inline member functions
for named locales, gnu-specific.
* config/c_locale_generic.h: New file.
* config/c_locale_generic.cc: New file. Non-inline member
functions for named locales, generic version.
* docs/html/configopts.html: Add documentation on new options.
* include/bits/locale_facets.h (class _Messages): Remove.
(class _Moneypunct): Remove.
* src/locale-inst.cc: Remove.
* include/bits/locale_facets.h (class _Collate): Remove.
* src/locale-inst.cc (std): Remove.
* src/locale.cc: And here.
* include/bits/localefwd.h (locale::_M_coalesce): New
function. Correctly put together multi-name locales.
(_Impl(const _Impl&, category, size_t)): Remove.
* include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
member functions.
(_M_normalize_category_names): Remove.
(_M_replace_categories): Fix.
* src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
(locale::_Impl::_M_construct_ctype): Remove.
(locale::_Impl::_M_construct_monetary): Remove.
(locale::_Impl::_M_construct_numeric): Remove.
(locale::_Impl::_M_construct_time): Remove.
(locale::_Impl::_M_construct_messages): Remove.
* include/bits/locale_facets.h (_Bad_use_facet): Remove.
(_Use_facet_failure_handle): Remove.
* src/locale.cc: Remove definitions.
* src/locale-inst.cc: And here.
* testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
* src/localename.cc (locale::facet::_S_create_c_locale): Properly
create and error-check underlying locale object.
(locale::facet::_S_destroy_c_locale): Add, take care of properly
tearing down underlying locale object.
* include/bits/localefwd.h (locale::facet): Declare.
* testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
correctness, as glibc apparently has incorrect info in it. Test
with it when it works again.....
* include/bits/localefwd.h (locale::_Impl::__vec_string):
Remove. Number of categories is fixed at six, so just simplify and
make this an array of strings.
(locale::_Impl::_M_has_name): Remove.
(locale::_Impl::_M_name): Remove.
(locale::_Impl::_M_category_names): Turns into...
(locale::_Impl::_M_names): ...this.
(locale::_Impl::_M_has_same_name()): New function.
* src/localename.cc (locale::_Impl::~_Impl()): Remove here.
(locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
signature.
* src/locale.cc (locale::name()): Construct mangled name
accurately reflecting combined locale categories.
* src/locale.cc (locale::classic()): Don't initialize here.
* src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
__refs, bool __has_name, string __str): Do it here.
* include/bits/localefwd.h: _S_categories_num to
_S_num_categories. _S_facets_num to _S_num_facets.
(locale::id::id()): Explicitly set _M_index to zero.
* src/locale.cc: Same.
* src/locale.cc: (locale::locale(const char*)): Construct named
locales uniquely.
* src/locale.cc: Remove numpunct_byname ctors.
* testsuite/22_locale/numpunct_byname.cc: New file.
* testsuite/22_locale/numpunct.cc: New file.
* include/bits/localefwd.h (class locale): Change data members to
protected, from private.
(_Impl::_M_get_c_locale): Add member function.
(locale::facet::_M_get_global_impl()): Add member function.
* include/bits/locale_facets.h (numpunct::_M_init): Change to take
a __c_locale pointer.
(numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
named locales.
* testsuite/22_locale/members.cc: New file, test name and combine.
* include/bits/locale_facets.h (class numpunct): Remove class
_Punct and _Numpunct. Rewrite class numpunct to be correct for
named locales.
* include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
* src/localename.cc (_Impl::~_Impl()): Call __frelocale.
(_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
* src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
* testsuite/22_locale/numpunct_char_members.cc: New file.
From-SVN: r39347
2001-01-30 04:18:51 -05:00
|
|
|
template class collate<char>;
|
2000-04-21 16:33:34 -04:00
|
|
|
template class collate_byname<char>;
|
|
|
|
template class _Weekdaynames<char, int>;
|
|
|
|
template class _Monthnames<char, int>;
|
|
|
|
#ifdef _GLIBCPP_USE_WCHAR_T
|
Preliminary named locales.
2001-01-29 Benjamin Kosnik <bkoz@redhat.com>
Preliminary named locales.
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): New macro.
* aclocal.m4: Regenerate.
* configure.in: Use it.
* configure: Regerate.
* src/Makefile.am (sources): Add c++locale.cc.
(build_headers): Add c++locale.h.
* src/Makefile.in: Regenerate.
* config/c_locale_gnu.h: New file.
* config/c_locale_gnu.cc: New file. Non-inline member functions
for named locales, gnu-specific.
* config/c_locale_generic.h: New file.
* config/c_locale_generic.cc: New file. Non-inline member
functions for named locales, generic version.
* docs/html/configopts.html: Add documentation on new options.
* include/bits/locale_facets.h (class _Messages): Remove.
(class _Moneypunct): Remove.
* src/locale-inst.cc: Remove.
* include/bits/locale_facets.h (class _Collate): Remove.
* src/locale-inst.cc (std): Remove.
* src/locale.cc: And here.
* include/bits/localefwd.h (locale::_M_coalesce): New
function. Correctly put together multi-name locales.
(_Impl(const _Impl&, category, size_t)): Remove.
* include/bits/localefwd.h (locale::_Impl): Remove _M_construct_*
member functions.
(_M_normalize_category_names): Remove.
(_M_replace_categories): Fix.
* src/localename.cc (locale::_Impl::_M_construct_collate): Remove.
(locale::_Impl::_M_construct_ctype): Remove.
(locale::_Impl::_M_construct_monetary): Remove.
(locale::_Impl::_M_construct_numeric): Remove.
(locale::_Impl::_M_construct_time): Remove.
(locale::_Impl::_M_construct_messages): Remove.
* include/bits/locale_facets.h (_Bad_use_facet): Remove.
(_Use_facet_failure_handle): Remove.
* src/locale.cc: Remove definitions.
* src/locale-inst.cc: And here.
* testsuite/22_locale/ctor_copy_dtor.cc (test01): Fixup. Add tests.
* src/localename.cc (locale::facet::_S_create_c_locale): Properly
create and error-check underlying locale object.
(locale::facet::_S_destroy_c_locale): Add, take care of properly
tearing down underlying locale object.
* include/bits/localefwd.h (locale::facet): Declare.
* testsuite/22_locale/members.cc: Don't test "fr_FR" locale for
correctness, as glibc apparently has incorrect info in it. Test
with it when it works again.....
* include/bits/localefwd.h (locale::_Impl::__vec_string):
Remove. Number of categories is fixed at six, so just simplify and
make this an array of strings.
(locale::_Impl::_M_has_name): Remove.
(locale::_Impl::_M_name): Remove.
(locale::_Impl::_M_category_names): Turns into...
(locale::_Impl::_M_names): ...this.
(locale::_Impl::_M_has_same_name()): New function.
* src/localename.cc (locale::_Impl::~_Impl()): Remove here.
(locale::_Impl::_Impl(size_t __refs, string __str)): Simplify
signature.
* src/locale.cc (locale::name()): Construct mangled name
accurately reflecting combined locale categories.
* src/locale.cc (locale::classic()): Don't initialize here.
* src/localename.cc (locale::_Impl::_Impl(size_t __num, size_t
__refs, bool __has_name, string __str): Do it here.
* include/bits/localefwd.h: _S_categories_num to
_S_num_categories. _S_facets_num to _S_num_facets.
(locale::id::id()): Explicitly set _M_index to zero.
* src/locale.cc: Same.
* src/locale.cc: (locale::locale(const char*)): Construct named
locales uniquely.
* src/locale.cc: Remove numpunct_byname ctors.
* testsuite/22_locale/numpunct_byname.cc: New file.
* testsuite/22_locale/numpunct.cc: New file.
* include/bits/localefwd.h (class locale): Change data members to
protected, from private.
(_Impl::_M_get_c_locale): Add member function.
(locale::facet::_M_get_global_impl()): Add member function.
* include/bits/locale_facets.h (numpunct::_M_init): Change to take
a __c_locale pointer.
(numpunct::numpunct( __c_locale*, size_t)): Add additonal ctor for
named locales.
* testsuite/22_locale/members.cc: New file, test name and combine.
* include/bits/locale_facets.h (class numpunct): Remove class
_Punct and _Numpunct. Rewrite class numpunct to be correct for
named locales.
* include/bits/localefwd.h (locale::_Imp::_M_c_locale): Add.
* src/localename.cc (_Impl::~_Impl()): Call __frelocale.
(_Imp::_Impl(size_t, size_t, bool, string)) Initialize _M_c_locale.
* src/locale-inst.cc: Remove _Numpunct, _Punct instantiations.
* testsuite/22_locale/numpunct_char_members.cc: New file.
From-SVN: r39347
2001-01-30 04:18:51 -05:00
|
|
|
template class collate<wchar_t>;
|
2000-04-21 16:33:34 -04:00
|
|
|
template class collate_byname<wchar_t>;
|
|
|
|
template class _Weekdaynames<wchar_t, int>;
|
|
|
|
template class _Monthnames<wchar_t, int>;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// use_facet
|
|
|
|
template
|
|
|
|
const num_put<char, obuf_iterator >&
|
2001-02-06 20:54:21 -05:00
|
|
|
use_facet<num_put<char, obuf_iterator> >(const locale&);
|
2000-04-21 16:33:34 -04:00
|
|
|
template
|
|
|
|
const num_get<char, ibuf_iterator >&
|
2001-02-06 20:54:21 -05:00
|
|
|
use_facet<num_get<char, ibuf_iterator> >(const locale&);
|
2000-04-21 16:33:34 -04:00
|
|
|
template
|
|
|
|
const codecvt<char, char, mbstate_t>&
|
2000-08-22 04:18:10 -04:00
|
|
|
use_facet<codecvt<char, char, mbstate_t> >(const locale&);
|
2001-02-06 20:54:21 -05:00
|
|
|
template
|
|
|
|
const numpunct<char>&
|
|
|
|
use_facet<numpunct<char> >(const locale&);
|
|
|
|
template
|
|
|
|
const collate<char>&
|
|
|
|
use_facet<collate<char> >(const locale&);
|
2000-04-21 16:33:34 -04:00
|
|
|
#ifdef _GLIBCPP_USE_WCHAR_T
|
|
|
|
template
|
|
|
|
const num_put<wchar_t, wobuf_iterator>&
|
2001-02-06 20:54:21 -05:00
|
|
|
use_facet<num_put<wchar_t, wobuf_iterator> >(const locale&);
|
2000-04-21 16:33:34 -04:00
|
|
|
template
|
|
|
|
const num_get<wchar_t, wibuf_iterator>&
|
2001-02-06 20:54:21 -05:00
|
|
|
use_facet<num_get<wchar_t, wibuf_iterator> >(const locale&);
|
2000-04-21 16:33:34 -04:00
|
|
|
template
|
|
|
|
const codecvt<wchar_t, char, mbstate_t>&
|
2001-02-06 20:54:21 -05:00
|
|
|
use_facet<codecvt<wchar_t, char, mbstate_t> >(locale const&);
|
|
|
|
template
|
|
|
|
const numpunct<wchar_t>&
|
|
|
|
use_facet<numpunct<wchar_t> >(const locale&);
|
|
|
|
template
|
|
|
|
const collate<wchar_t>&
|
|
|
|
use_facet<collate<wchar_t> >(const locale&);
|
2000-04-21 16:33:34 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// has_facet
|
|
|
|
template
|
|
|
|
bool
|
2001-05-31 08:14:56 -04:00
|
|
|
has_facet<numpunct<char> >(const locale&);
|
|
|
|
template
|
|
|
|
bool
|
|
|
|
has_facet<num_put<char> >(const locale&);
|
|
|
|
template
|
|
|
|
bool
|
|
|
|
has_facet<num_get<char> >(const locale&);
|
|
|
|
template
|
|
|
|
bool
|
|
|
|
has_facet<ctype<char> >(const locale&);
|
|
|
|
|
2000-04-21 16:33:34 -04:00
|
|
|
#ifdef _GLIBCPP_USE_WCHAR_T
|
|
|
|
template
|
|
|
|
bool
|
2001-05-31 08:14:56 -04:00
|
|
|
has_facet<numpunct<wchar_t> >(const locale&);
|
|
|
|
template
|
|
|
|
bool
|
|
|
|
has_facet<num_put<wchar_t> >(const locale&);
|
|
|
|
template
|
|
|
|
bool
|
|
|
|
has_facet<num_get<wchar_t> >(const locale&);
|
|
|
|
template
|
|
|
|
bool
|
|
|
|
has_facet<ctype<wchar_t> >(const locale&);
|
2000-04-21 16:33:34 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// iterator
|
|
|
|
//
|
|
|
|
typedef vector<locale::facet*> vec_pfacet;
|
|
|
|
template
|
|
|
|
void
|
|
|
|
vec_pfacet::
|
|
|
|
insert(vec_pfacet::iterator, vec_pfacet::size_type,
|
|
|
|
const vec_pfacet::value_type&);
|
2000-11-08 15:00:36 -05:00
|
|
|
template
|
|
|
|
void
|
|
|
|
vec_pfacet::
|
|
|
|
_M_fill_insert(vec_pfacet::iterator, vec_pfacet::size_type,
|
|
|
|
const vec_pfacet::value_type&);
|
|
|
|
|
2000-04-21 16:33:34 -04:00
|
|
|
|
|
|
|
typedef istreambuf_iterator<char, char_traits<char> > istreambuf_iter;
|
|
|
|
typedef ostreambuf_iterator<char, char_traits<char> > ostreambuf_iter;
|
|
|
|
|
|
|
|
|
|
|
|
template
|
|
|
|
istreambuf_iter
|
|
|
|
__match_parallel<istreambuf_iter, char>
|
|
|
|
(istreambuf_iter, istreambuf_iter, int, const string*, int*, int&, bool&);
|
|
|
|
|
|
|
|
|
|
|
|
#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;
|
|
|
|
|
|
|
|
template
|
|
|
|
wistreambuf_iter
|
|
|
|
__match_parallel<wistreambuf_iter, wchar_t>
|
|
|
|
(wistreambuf_iter, wistreambuf_iter, int, const wstring*, int*, int&, bool&);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// locale
|
|
|
|
//
|
|
|
|
template
|
|
|
|
bool
|
|
|
|
locale::operator()(const string&, const string&) const;
|
|
|
|
|
|
|
|
template
|
|
|
|
ostreambuf_iter
|
2001-02-06 20:54:21 -05:00
|
|
|
__pad<char, ostreambuf_iter, output_iterator_tag>
|
2000-04-21 16:33:34 -04:00
|
|
|
(ostreambuf_iter, char, int, output_iterator_tag);
|
|
|
|
|
|
|
|
template
|
|
|
|
ostreambuf_iter
|
2001-02-06 20:54:21 -05:00
|
|
|
__pad_numeric<char, ostreambuf_iter>
|
2000-04-21 16:33:34 -04:00
|
|
|
(ostreambuf_iter, ios_base::fmtflags, char, int, char const*, char const*,
|
|
|
|
char const*);
|
|
|
|
|
|
|
|
template
|
|
|
|
char*
|
2001-02-06 20:54:21 -05:00
|
|
|
__group_digits<char>(char*, char, char const*, char const*,
|
|
|
|
char const*, char const*);
|
2000-04-21 16:33:34 -04:00
|
|
|
|
|
|
|
template
|
|
|
|
ostreambuf_iter
|
2001-02-06 20:54:21 -05:00
|
|
|
__output_integer<char, ostreambuf_iter, unsigned long>
|
2000-04-21 16:33:34 -04:00
|
|
|
(ostreambuf_iter, ios_base &, char, bool, unsigned long);
|
|
|
|
|
|
|
|
#ifdef _GLIBCPP_USE_LONG_LONG
|
|
|
|
template
|
|
|
|
ostreambuf_iter
|
2001-02-06 20:54:21 -05:00
|
|
|
__output_integer<char, ostreambuf_iter, unsigned long long>
|
2000-04-21 16:33:34 -04:00
|
|
|
(ostreambuf_iter, ios_base &, char, bool, unsigned long long);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _GLIBCPP_USE_WCHAR_T
|
|
|
|
template
|
|
|
|
bool
|
|
|
|
locale::operator()(const wstring&, const wstring&) const;
|
|
|
|
|
|
|
|
typedef ostreambuf_iterator<wchar_t> wostreambuf_iter;
|
|
|
|
|
|
|
|
template
|
|
|
|
wostreambuf_iter
|
2001-02-06 20:54:21 -05:00
|
|
|
__pad<wchar_t, wostreambuf_iter, output_iterator_tag>
|
2000-04-21 16:33:34 -04:00
|
|
|
(wostreambuf_iter, wchar_t, int, output_iterator_tag);
|
|
|
|
|
|
|
|
template
|
|
|
|
wostreambuf_iter
|
2001-02-06 20:54:21 -05:00
|
|
|
__pad_numeric<wchar_t, wostreambuf_iter>
|
|
|
|
(wostreambuf_iter, ios_base::fmtflags, wchar_t __fill, int, wchar_t const*,
|
2000-04-21 16:33:34 -04:00
|
|
|
wchar_t const*, wchar_t const*);
|
|
|
|
|
|
|
|
template
|
|
|
|
wchar_t*
|
2001-02-06 20:54:21 -05:00
|
|
|
__group_digits<wchar_t>(wchar_t*, wchar_t, char const*, char const*,
|
|
|
|
wchar_t const*, wchar_t const*);
|
2000-04-21 16:33:34 -04:00
|
|
|
|
|
|
|
template
|
|
|
|
wostreambuf_iter
|
2001-02-06 20:54:21 -05:00
|
|
|
__output_integer<wchar_t, wostreambuf_iter, unsigned long>
|
2000-04-21 16:33:34 -04:00
|
|
|
(wostreambuf_iter, ios_base &, wchar_t, bool, unsigned long);
|
|
|
|
|
|
|
|
#ifdef _GLIBCPP_USE_LONG_LONG
|
|
|
|
template
|
|
|
|
wostreambuf_iter
|
2001-02-06 20:54:21 -05:00
|
|
|
__output_integer<wchar_t, wostreambuf_iter, unsigned long long>
|
2000-04-21 16:33:34 -04:00
|
|
|
(wostreambuf_iter, ios_base &, wchar_t, bool, unsigned long long);
|
|
|
|
#endif
|
|
|
|
#endif // _GLIBCPP_USE_WCHAR_T
|
|
|
|
|
2000-11-08 15:00:36 -05:00
|
|
|
template
|
|
|
|
locale::facet**
|
2001-02-08 15:33:19 -05:00
|
|
|
fill_n<locale::facet**, size_t, locale::facet*>
|
|
|
|
(locale::facet**, size_t, locale::facet* const&);
|
2001-02-06 01:36:18 -05:00
|
|
|
|
|
|
|
template
|
2001-02-08 15:33:19 -05:00
|
|
|
__normal_iterator<locale::facet**, vector<locale::facet*> >
|
|
|
|
fill_n(__normal_iterator<locale::facet**, vector<locale::facet*> >,
|
|
|
|
size_t, locale::facet* const&);
|
2001-02-06 01:36:18 -05:00
|
|
|
|
|
|
|
template
|
|
|
|
void
|
2001-02-08 15:33:19 -05:00
|
|
|
fill(__normal_iterator<locale::facet**, vector<locale::facet*> >,
|
|
|
|
__normal_iterator<locale::facet**, vector<locale::facet*> >,
|
|
|
|
locale::facet* const&);
|
2001-03-04 16:34:02 -05:00
|
|
|
} // namespace std
|
2000-04-21 16:33:34 -04:00
|
|
|
|