From 7a1aa5f659110e99950b00b6b326b41436872635 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Tue, 13 Mar 2018 15:16:00 +0000 Subject: Remove usage of FXSYS_*ASCIIlower/upper methods This replaces them with equivalent FXSYS_*wlower/upper methods, which uses ICU to perform the correct Unicode operations. BUG=pdfium:1035 Change-Id: I432db5bef9eda71762016b619d93155949d054db Reviewed-on: https://pdfium-review.googlesource.com/28530 Reviewed-by: dsinclair Commit-Queue: Ryan Harrison --- core/fxcrt/bytestring.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxcrt/bytestring.cpp') diff --git a/core/fxcrt/bytestring.cpp b/core/fxcrt/bytestring.cpp index 2a57602692..f5687c591e 100644 --- a/core/fxcrt/bytestring.cpp +++ b/core/fxcrt/bytestring.cpp @@ -344,8 +344,8 @@ bool ByteString::EqualNoCase(const ByteStringView& str) const { const uint8_t* pThat = str.raw_str(); for (size_t i = 0; i < len; i++) { if ((*pThis) != (*pThat)) { - uint8_t bThis = FXSYS_toASCIIlower(*pThis); - uint8_t bThat = FXSYS_toASCIIlower(*pThat); + uint8_t bThis = tolower(*pThis); + uint8_t bThat = tolower(*pThat); if (bThis != bThat) return false; } -- cgit v1.2.3