// Locale support -*- C++ -*- // 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 // 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 #include #include #include #include #include #include #include #include #include namespace std { typedef ostreambuf_iterator > obuf_iterator; typedef istreambuf_iterator > ibuf_iterator; typedef ostreambuf_iterator > wobuf_iterator; typedef istreambuf_iterator > wibuf_iterator; // moneypunct, money_get, and money_put template class moneypunct; template class moneypunct; template class moneypunct_byname; template class moneypunct_byname; template class money_get; template class money_put; template class _Format_cache; #ifdef _GLIBCPP_USE_WCHAR_T template class moneypunct; template class moneypunct; template class moneypunct_byname; template class moneypunct_byname; template class money_get; template class money_put; template class _Format_cache; #endif // numpunct, numpunct_byname, num_get, and num_put template class numpunct; template class numpunct_byname; template class num_get; template class num_put; #ifdef _GLIBCPP_USE_WCHAR_T template class numpunct; template class numpunct_byname; template class num_get; template class num_put; #endif // time_get and time_put template class time_put; template class time_put_byname; template class time_get; template class time_get_byname; #ifdef _GLIBCPP_USE_WCHAR_T template class time_put; template class time_put_byname; template class time_get; template class time_get_byname; #endif // messages template class messages; template class messages_byname; #ifdef _GLIBCPP_USE_WCHAR_T template class messages; template class messages_byname; #endif // ctype template class __ctype_abstract_base; template class ctype_byname; #ifdef _GLIBCPP_USE_WCHAR_T template class __ctype_abstract_base; template class ctype_byname; #endif // codecvt template class __codecvt_abstract_base; template class __codecvt_abstract_base; template class codecvt_byname; #ifdef _GLIBCPP_USE_WCHAR_T template class codecvt_byname; #endif // collate template class collate; template class collate_byname; template class _Weekdaynames; template class _Monthnames; #ifdef _GLIBCPP_USE_WCHAR_T template class collate; template class collate_byname; template class _Weekdaynames; template class _Monthnames; #endif // use_facet template const num_put& use_facet >(const locale&); template const num_get& use_facet >(const locale&); template const codecvt& use_facet >(const locale&); template const numpunct& use_facet >(const locale&); template const collate& use_facet >(const locale&); template const moneypunct& use_facet >(const locale&); template const moneypunct& use_facet >(const locale&); #ifdef _GLIBCPP_USE_WCHAR_T template const num_put& use_facet >(const locale&); template const num_get& use_facet >(const locale&); template const codecvt& use_facet >(locale const&); template const numpunct& use_facet >(const locale&); template const collate& use_facet >(const locale&); template const moneypunct& use_facet >(const locale&); template const moneypunct& use_facet >(const locale&); #endif // has_facet template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); #ifdef _GLIBCPP_USE_WCHAR_T template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); #endif // // iterator // typedef vector 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&); typedef istreambuf_iterator > istreambuf_iter; typedef ostreambuf_iterator > ostreambuf_iter; template istreambuf_iter __match_parallel (istreambuf_iter, istreambuf_iter, int, const string*, int*, int&, bool&); #ifdef _GLIBCPP_USE_WCHAR_T typedef istreambuf_iterator > wistreambuf_iter; typedef ostreambuf_iterator > wostreambuf_iter; template wistreambuf_iter __match_parallel (wistreambuf_iter, wistreambuf_iter, int, const wstring*, int*, int&, bool&); #endif // // locale // template bool locale::operator()(const string&, const string&) const; template ostreambuf_iter __pad (ostreambuf_iter, char, int, output_iterator_tag); template ostreambuf_iter __pad_numeric (ostreambuf_iter, ios_base::fmtflags, char, int, char const*, char const*, char const*); template char* __group_digits(char*, char, char const*, char const*, char const*, char const*); template ostreambuf_iter __output_integer (ostreambuf_iter, ios_base &, char, bool, unsigned long); #ifdef _GLIBCPP_USE_LONG_LONG template ostreambuf_iter __output_integer (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 wostreambuf_iter; template wostreambuf_iter __pad (wostreambuf_iter, wchar_t, int, output_iterator_tag); template wostreambuf_iter __pad_numeric (wostreambuf_iter, ios_base::fmtflags, wchar_t __fill, int, wchar_t const*, wchar_t const*, wchar_t const*); template wchar_t* __group_digits(wchar_t*, wchar_t, char const*, char const*, wchar_t const*, wchar_t const*); template wostreambuf_iter __output_integer (wostreambuf_iter, ios_base &, wchar_t, bool, unsigned long); #ifdef _GLIBCPP_USE_LONG_LONG template wostreambuf_iter __output_integer (wostreambuf_iter, ios_base &, wchar_t, bool, unsigned long long); #endif #endif // _GLIBCPP_USE_WCHAR_T template locale::facet** fill_n (locale::facet**, size_t, locale::facet* const&); template __normal_iterator > fill_n(__normal_iterator >, size_t, locale::facet* const&); template void fill(__normal_iterator >, __normal_iterator >, locale::facet* const&); } // namespace std