[v3] Move locale cache to 3.3. take 2
jlquinn@optonline.net
jlquinn@optonline.net
Tue Mar 4 20:09:00 GMT 2003
Here is the patch again, this time with the ios_base
pword and iword bug separated out, and resynced to
the top of the 3.3 branch.
2003-03-02 Jerry Quinn <jlquinn at optonline dot net>
* include/bits/basic_ios.h: Update copyright.
(_M_cache_locale): New.
(_M_cache_facets): Deprecate.
* include/bits/basic_ios.tcc (basic_ios::copyfmt):
Set up locale
caching.
(basic_ios::imbue,basic_ios::init): Use _M_cache_locale.
(basic_ios::_M_cache_locale): New.
(basic_ios::_M_cache_facets): Deprecate.
* include/bits/ios_base.h (__locale_cache_base): Declare.
(ios_base::_M_cache): Define.
* include/bits/locale_facets.h
(__locale_cache_base,__locale_cache<_CharT>): New
classes.
* include/bits/locale_facets.tcc
(num_put::_M_convert_int): Use locale
cache literal string, grouping flag, thousands separator.
(num_out::_M_convert_float): Use locale cache
grouping flag, decimal
point, thousands separator.
(__locale_cache<_CharT>::_M_init,__locale_cache<_CharT>::_S_callback):
New.
* src/locale-inst.cc
(__locale_cache<_CharT>::_S_callback,
__locale_cache<char>,
__locale_cache<wchar_t>): New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: localecache3.3.patch
Type: application/octet-stream
Size: 15645 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030304/b33f2646/attachment.obj>
More information about the Libstdc++
mailing list