This is the mail archive of the mailing list for the libstdc++ project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] pr 8761 and 7076, caching bits

Jerry, this looks great. I'll put it in later today. Thanks!


>2003-02-13  Jerry Quinn  <>
>	* include/bits/basic_ios.h (__locale_cache::_M_cache): Declare.
>	* include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale cache.
>	(basic_ios::imbue): Force locale cache to be built.
>	(basic_ios::_M_init): Create and initialize locale cache.
>	* include/bits/ios_base.h (__locale_cache_base): Declare.
>	(ios_base::_M_locale_cache): New.
>	(ios_base::_M_cache): Define.
>	* include/bits/locale_facets.h:	(__num_base): Fix comment.  Add
>	_S_end.
>        (__locale_cache_base,__locale_cache<_CharT>):  New classes.
>	(__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
>	* include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
>	cache literal string, grouping flag, thousands separator.
>	(__locale_cache<_CharT>::__locale_cache): New.
>	(__locale_cache<_CharT>::_M_init): New.
>	(__locale_cache<_CharT>::_M_populate): New.
>	* src/ Clear _M_locale_cache in constructor.
>	* src/ (__locale_cache<char>, __locale_cache<_char_t>):
>	New.
>	* src/ (__locale_cache<char>::__locale_cache,
>	__locale_cache<wchar_t>::__locale_cache): New.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]