locale_facets.tcc (time_get::do_get_year): Avoid using a basic_string and calling...
authorPaolo Carlini <pcarlini@suse.de>
Tue, 2 Dec 2003 18:30:42 +0000 (18:30 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 2 Dec 2003 18:30:42 +0000 (18:30 +0000)
commit17e15f7f3bac951cca622f52b0baac91aa2ba401
tree768293df17c2e0932f06bd9ebdc0fff4176f88ec
parent0548bb4aba154c468f2ea6b498089891415bf526
locale_facets.tcc (time_get::do_get_year): Avoid using a basic_string and calling a full blown strtol (via __convert_to_v)...

2003-12-02  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (time_get::do_get_year):
Avoid using a basic_string and calling a full blown strtol
(via __convert_to_v) for simple 2 or 4 digits, base 10,
positive integers; simplify.

From-SVN: r74193
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc