diff --git a/third_party/double-conversion/README.dart b/third_party/double-conversion/README.dart index 461b5414868..e42958102d0 100644 --- a/third_party/double-conversion/README.dart +++ b/third_party/double-conversion/README.dart @@ -9,3 +9,4 @@ for v8. Local Modifications: Removed the test directory and the build files. +Removed dependency on . diff --git a/third_party/double-conversion/src/string-to-double.cc b/third_party/double-conversion/src/string-to-double.cc index 972956ca690..b99ba5f2133 100644 --- a/third_party/double-conversion/src/string-to-double.cc +++ b/third_party/double-conversion/src/string-to-double.cc @@ -26,7 +26,6 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include -#include #include #include "string-to-double.h" @@ -52,9 +51,8 @@ namespace double_conversion { namespace { inline char ToLower(char ch) { - static const std::ctype& cType = - std::use_facet >(std::locale::classic()); - return cType.tolower(ch); + if (ch >= 'A' && ch <= 'Z') return ch - 'A' + 'a'; + return ch; } inline char Pass(char ch) {