libstdc++: Don't use std::tolower in <charconv> [PR103911]
authorPatrick Palka <ppalka@redhat.com>
Mon, 2 May 2022 11:01:33 +0000 (07:01 -0400)
committerPatrick Palka <ppalka@redhat.com>
Fri, 6 May 2022 13:11:58 +0000 (09:11 -0400)
commiteed2cd48cd5e8d94ceb15c5fd86cdd27926b54b5
treee22ca5c11a74851dbf6df8c06fb592b87c733548
parent39c56695c70a2052fc6bdcfca606dfff9c2fa975
libstdc++: Don't use std::tolower in <charconv> [PR103911]

As with std::isdigit in r12-6281-gc83ecfbe74a5cf, we shouldn't be using
std::tolower in <charconv> either.

PR libstdc++/103911

libstdc++-v3/ChangeLog:

* src/c++17/floating_from_chars.cc (find_end_of_float): Accept
two delimeters for the exponent part in the form of a possibly
NULL string of length two.  Don't use std::tolower.
(pattern): Adjust calls to find_end_of_float accordingly.

(cherry picked from commit 86d821ddf5615e693ead667b2580898f46de8eb9)
libstdc++-v3/src/c++17/floating_from_chars.cc