locale_facets.h (struct __numpunct_cache): Add members _M_truename_len and _M_falsena...
authorPaolo Carlini <pcarlini@suse.de>
Mon, 12 Jan 2004 17:02:08 +0000 (17:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 12 Jan 2004 17:02:08 +0000 (17:02 +0000)
commitdc6798f86565a8d31de69989cc27568ac7acb1e7
treeb10bbc00ff5a3a832933b613202d82eed4ed43dc
parent59774bb04716747d20b0df50d13e3ab062afeb95
locale_facets.h (struct __numpunct_cache): Add members _M_truename_len and _M_falsename_len...

2004-01-12  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.h (struct __numpunct_cache):
Add members _M_truename_len and _M_falsename_len, caching
the lengths of _M_truename and _M_falsename.
(__numpunct_cache<>::_M_cache): Assign the latter.
* include/bits/locale_facets.tcc (num_get::do_get(bool&),
num_put::do_put(bool)): Use the new members, thus avoiding
computing string lengths again and again.
* config/locale/generic/numeric_members.cc
(numpunct<>::_M_initialize_numpunct): Assign the new members.
* config/locale/gnu/numeric_members.cc
(numpunct<>::_M_initialize_numpunct): Likewise.

From-SVN: r75735
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/numeric_members.cc
libstdc++-v3/config/locale/gnu/numeric_members.cc
libstdc++-v3/include/bits/locale_facets.h
libstdc++-v3/include/bits/locale_facets.tcc