localename.cc (locale::_Impl::_Impl): Slightly improve the algorithm used to name the categories.
2004-06-28 Paolo Carlini <pcarlini@suse.de> * src/localename.cc (locale::_Impl::_Impl): Slightly improve the algorithm used to name the categories. From-SVN: r83778
This commit is contained in:
parent
e4cb0c0441
commit
2d91a076cc
@ -1,3 +1,8 @@
|
||||
2004-06-28 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* src/localename.cc (locale::_Impl::_Impl): Slightly improve
|
||||
the algorithm used to name the categories.
|
||||
|
||||
2004-06-28 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* include/Makefile.am: Give a .gch extension to
|
||||
|
@ -209,11 +209,11 @@ namespace std
|
||||
}
|
||||
else
|
||||
{
|
||||
const char* __beg = __s;
|
||||
const char* __end = __s;
|
||||
for (size_t __i = 0; __i < _S_categories_size; ++__i)
|
||||
{
|
||||
__beg = std::strchr(__beg, '=') + 1;
|
||||
const char* __end = std::strchr(__beg, ';');
|
||||
const char* __beg = std::strchr(__end + 1, '=') + 1;
|
||||
__end = std::strchr(__beg, ';');
|
||||
if (!__end)
|
||||
__end = __s + __len;
|
||||
_M_names[__i] = new char[__end - __beg + 1];
|
||||
|
Loading…
Reference in New Issue
Block a user