Add C++11 std::string constructors for locales and facets.
authorJonathan Wakely <jwakely@redhat.com>
Tue, 20 Jan 2015 11:50:51 +0000 (11:50 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 20 Jan 2015 11:50:51 +0000 (11:50 +0000)
commit71a16cd8bcb8d112a2a1db544b7f3aa9cfea67f8
treeb330b6dfc0fcea1b9f3d8f6ed8beee71add29a2c
parent0e4974d62ecd488122ae99b0b2ed5afeb1d121eb
Add C++11 std::string constructors for locales and facets.

* config/abi/pre/gnu.ver: Export new constructors.
* include/bits/codecvt.h (codecvt_byname): Add string constructor.
(codecvt_byname<char16_t>, codecvt_byname<char32_t>): Define explicit
specializations and declare explicit instantiations.
* include/bits/locale_classes.h (locale, collate_byname): Add string
constructors.
* include/bits/locale_facets.h (ctype_byname, numpunct_byname):
Likewise.
* include/bits/locale_facets_nonio.h (time_get_byname,
time_put_byname, moneypunct_byname, messages_byname): Likewise.
* src/c++11/codecvt.cc (codecvt_byname<char16_t>,
codecvt_byname<char32_t>): Define explicit instantiations.
* src/c++11/locale-inst.cc (time_put_byname, codecvt_byname):
Instantiate string constructors.
(ctype_byname): Define string constructor.
* testsuite/22_locale/codecvt_byname/1.cc: New.
* testsuite/22_locale/collate_byname/1.cc: New.
* testsuite/22_locale/ctype_byname/2.cc: New.
* testsuite/22_locale/messages_byname/1.cc: New.
* testsuite/22_locale/moneypunct_byname/1.cc: New.
* testsuite/22_locale/numpunct_byname/1.cc: New.

From-SVN: r219887
14 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/config/abi/pre/gnu.ver
libstdc++-v3/include/bits/codecvt.h
libstdc++-v3/include/bits/locale_classes.h
libstdc++-v3/include/bits/locale_facets.h
libstdc++-v3/include/bits/locale_facets_nonio.h
libstdc++-v3/src/c++11/codecvt.cc
libstdc++-v3/src/c++11/locale-inst.cc
libstdc++-v3/testsuite/22_locale/codecvt_byname/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/collate_byname/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/ctype_byname/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/messages_byname/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/moneypunct_byname/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/numpunct_byname/1.cc [new file with mode: 0644]