diff options
author | Paolo Carlini <pcarlini@suse.de> | 2003-12-12 19:44:17 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-12-12 19:44:17 +0000 |
commit | e3c0c0989b614b5ce3e968ff49a12eaddebc0d76 (patch) | |
tree | a54b8363ab8d9576e500c8c1d21398142cdd9d19 /gcc/ada/s-io.adb | |
parent | e00853fd9010af463931114e469875303b7bf876 (diff) | |
download | gcc-e3c0c0989b614b5ce3e968ff49a12eaddebc0d76.zip gcc-e3c0c0989b614b5ce3e968ff49a12eaddebc0d76.tar.gz gcc-e3c0c0989b614b5ce3e968ff49a12eaddebc0d76.tar.bz2 |
re PR libstdc++/13341 (ctype<wchar_t>::do_narrow(wchar_t, char) is slow)
2003-12-12 Paolo Carlini <pcarlini@suse.de>
Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/13341
* include/bits/locale_facets.h (ctype<wchar_t>): Declare
_M_initialize_ctype() and _M_narrow_ok, _M_narrow and _M_widen.
* src/ctype.cc (ctype<wchar_t>::ctype(size_t),
ctype<wchar_t>::ctype(__c_locale, size_t)): Use
_M_initialize_ctype to fill _M_narrow and _M_widen.
(ctype_byname<wchar_t>::ctype_byname(const char*, size_t)):
Likewise.
* config/locale/generic/ctype_members.cc (do_narrow, do_widen)
Use _M_narrow and _M_widen when possible, instead of calling
wctob and btowc, respectively.
(_M_initialize_ctype): Define, it fills at construction time
_M_narrow and _M_widen.
* config/locale/gnu/ctype_members.cc: Likewise.
* testsuite/performance/narrow_widen_wchar_t.cc: New.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r74580
Diffstat (limited to 'gcc/ada/s-io.adb')
0 files changed, 0 insertions, 0 deletions