// Locale support -*- C++ -*- // Copyright (C) 1999, 2000, 2001, 2002, 2003 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 namespace std { // 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 >; #ifdef _GLIBCXX_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 >; #endif // numpunct, numpunct_byname, num_get, and num_put template class numpunct; template struct __numpunct_cache; template class numpunct_byname; template class num_get >; template class num_put >; template ostreambuf_iterator num_put >:: _M_insert_int(ostreambuf_iterator, ios_base&, char, long) const; template ostreambuf_iterator num_put >:: _M_insert_int(ostreambuf_iterator, ios_base&, char, unsigned long) const; #ifdef _GLIBCXX_USE_LONG_LONG template ostreambuf_iterator num_put >:: _M_insert_int(ostreambuf_iterator, ios_base&, char, long long) const; template ostreambuf_iterator num_put >:: _M_insert_int(ostreambuf_iterator, ios_base&, char, unsigned long long) const; #endif template ostreambuf_iterator num_put >:: _M_insert_float(ostreambuf_iterator, ios_base&, char, char, double) const; template ostreambuf_iterator num_put >:: _M_insert_float(ostreambuf_iterator, ios_base&, char, char, long double) const; #ifdef _GLIBCXX_USE_WCHAR_T template class numpunct; template struct __numpunct_cache; template class numpunct_byname; template class num_get >; template class num_put >; template ostreambuf_iterator num_put >:: _M_insert_int(ostreambuf_iterator, ios_base&, wchar_t, long) const; template ostreambuf_iterator num_put >:: _M_insert_int(ostreambuf_iterator, ios_base&, wchar_t, unsigned long) const; #ifdef _GLIBCXX_USE_LONG_LONG template ostreambuf_iterator num_put >:: _M_insert_int(ostreambuf_iterator, ios_base&, wchar_t, long long) const; template ostreambuf_iterator num_put >:: _M_insert_int(ostreambuf_iterator, ios_base&, wchar_t, unsigned long long) const; #endif template ostreambuf_iterator num_put >:: _M_insert_float(ostreambuf_iterator, ios_base&, wchar_t, char, double) const; template ostreambuf_iterator num_put >:: _M_insert_float(ostreambuf_iterator, ios_base&, wchar_t, char, long double) const; #endif // time_get and time_put template class __timepunct; template class time_put >; template class time_put_byname >; template class time_get >; template class time_get_byname >; #ifdef _GLIBCXX_USE_WCHAR_T template class __timepunct; 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 _GLIBCXX_USE_WCHAR_T template class messages; template class messages_byname; #endif // ctype inline template class __ctype_abstract_base; template class ctype_byname; #ifdef _GLIBCXX_USE_WCHAR_T inline template class __ctype_abstract_base; template class ctype_byname; #endif // codecvt inline template class __codecvt_abstract_base; template class codecvt_byname; #ifdef _GLIBCXX_USE_WCHAR_T inline template class __codecvt_abstract_base; template class codecvt_byname; #endif // collate template class collate; template class collate_byname; #ifdef _GLIBCXX_USE_WCHAR_T template class collate; template class collate_byname; #endif // use_facet // NB: use_facet is specialized template const codecvt& use_facet >(const locale&); template const collate& use_facet >(const locale&); template const numpunct& use_facet >(const locale&); template const num_put& use_facet >(const locale&); template const num_get& use_facet >(const locale&); template const moneypunct& use_facet >(const locale&); template const moneypunct& use_facet >(const locale&); template const money_put& use_facet >(const locale&); template const money_get& use_facet >(const locale&); template const __timepunct& use_facet<__timepunct >(const locale&); template const time_put& use_facet >(const locale&); template const time_get& use_facet >(const locale&); template const messages& use_facet >(const locale&); #ifdef _GLIBCXX_USE_WCHAR_T template const codecvt& use_facet >(locale const&); template const collate& use_facet >(const locale&); template const numpunct& use_facet >(const locale&); template const num_put& use_facet >(const locale&); template const num_get& use_facet >(const locale&); template const moneypunct& use_facet >(const locale&); template const moneypunct& use_facet >(const locale&); template const money_put& use_facet >(const locale&); template const money_get& use_facet >(const locale&); template const __timepunct& use_facet<__timepunct >(const locale&); template const time_put& use_facet >(const locale&); template const time_get& use_facet >(const locale&); template const messages& 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&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet<__timepunct >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); #ifdef _GLIBCXX_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&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet<__timepunct >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); template bool has_facet >(const locale&); #endif // locale template char* __add_grouping(char*, char, char const*, char const*, char const*, char const*); template bool __verify_grouping(const basic_string&, basic_string&); template class __pad >; #ifdef _GLIBCXX_USE_WCHAR_T template wchar_t* __add_grouping(wchar_t*, wchar_t, char const*, char const*, wchar_t const*, wchar_t const*); template bool __verify_grouping(const basic_string&, basic_string&); template class __pad >; #endif template int __convert_from_v(char*, const int, const char*, double, const __c_locale&, int); template int __convert_from_v(char*, const int, const char*, long double, const __c_locale&, int); template int __convert_from_v(char*, const int, const char*, long, const __c_locale&, int); template int __convert_from_v(char*, const int, const char*, unsigned long, const __c_locale&, int); #ifdef _GLIBCXX_USE_LONG_LONG template int __convert_from_v(char*, const int, const char*, long long, const __c_locale&, int); template int __convert_from_v(char*, const int, const char*, unsigned long long, const __c_locale&, int); #endif template int __int_to_char(char*, const int, unsigned long, const char*, ios_base::fmtflags, bool); #ifdef _GLIBCXX_USE_WCHAR_T template int __int_to_char(wchar_t*, const int, unsigned long, const wchar_t*, ios_base::fmtflags, bool); #endif #ifdef _GLIBCXX_USE_LONG_LONG template int __int_to_char(char*, const int, unsigned long long, const char*, ios_base::fmtflags, bool); #ifdef _GLIBCXX_USE_WCHAR_T template int __int_to_char(wchar_t*, const int, unsigned long long, const wchar_t*, ios_base::fmtflags, bool); #endif #endif } // namespace std