diff options
author | Paolo Carlini <pcarlini@suse.de> | 2003-11-23 14:49:54 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-11-23 14:49:54 +0000 |
commit | bf058d221efaf883b850d459809373cfaf5e05f2 (patch) | |
tree | 4ebc28a1c4eb84529c51e12a6d425db30d072d35 | |
parent | 89a2fb90925e68fd4d3175040b930423a051c21c (diff) | |
download | gcc-bf058d221efaf883b850d459809373cfaf5e05f2.zip gcc-bf058d221efaf883b850d459809373cfaf5e05f2.tar.gz gcc-bf058d221efaf883b850d459809373cfaf5e05f2.tar.bz2 |
locale_facets.tcc (__add_grouping): Cosmetic reformatting.
2003-11-23 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (__add_grouping):
Cosmetic reformatting.
From-SVN: r73854
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/locale_facets.tcc | 28 |
2 files changed, 19 insertions, 14 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 05e0d8f..1dbec0c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2003-11-23 Paolo Carlini <pcarlini@suse.de> + * include/bits/locale_facets.tcc (__add_grouping): + Cosmetic reformatting. + +2003-11-23 Paolo Carlini <pcarlini@suse.de> + * include/bits/locale_facets.tcc (_M_extract_float, _M_extract_int): Remove a wrong comment and simplify the corresponding code using char_traits::find(). diff --git a/libstdc++-v3/include/bits/locale_facets.tcc b/libstdc++-v3/include/bits/locale_facets.tcc index 3b5c484..5f09924 100644 --- a/libstdc++-v3/include/bits/locale_facets.tcc +++ b/libstdc++-v3/include/bits/locale_facets.tcc @@ -2265,20 +2265,20 @@ namespace std __add_grouping(_CharT* __s, _CharT __sep, const char* __gbeg, const char* __gend, const _CharT* __first, const _CharT* __last) - { - if (__last - __first > *__gbeg) - { - const bool __bump = __gbeg + 1 != __gend; - __s = std::__add_grouping(__s, __sep, __gbeg + __bump, - __gend, __first, __last - *__gbeg); - __first = __last - *__gbeg; - *__s++ = __sep; - } - do - *__s++ = *__first++; - while (__first != __last); - return __s; - } + { + if (__last - __first > *__gbeg) + { + const bool __bump = __gbeg + 1 != __gend; + __s = std::__add_grouping(__s, __sep, __gbeg + __bump, + __gend, __first, __last - *__gbeg); + __first = __last - *__gbeg; + *__s++ = __sep; + } + do + *__s++ = *__first++; + while (__first != __last); + return __s; + } // Inhibit implicit instantiations for required instantiations, // which are defined via explicit instantiations elsewhere. |