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/fx_system.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'core/fxcrt/fx_system.cpp') diff --git a/core/fxcrt/fx_system.cpp b/core/fxcrt/fx_system.cpp index 532e83b949..27cbd65f3c 100644 --- a/core/fxcrt/fx_system.cpp +++ b/core/fxcrt/fx_system.cpp @@ -118,7 +118,7 @@ char* FXSYS_strlwr(char* str) { } char* s = str; while (*str) { - *str = FXSYS_toASCIIlower(*str); + *str = tolower(*str); str++; } return s; @@ -129,7 +129,7 @@ char* FXSYS_strupr(char* str) { } char* s = str; while (*str) { - *str = FXSYS_toASCIIupper(*str); + *str = toupper(*str); str++; } return s; @@ -140,7 +140,7 @@ wchar_t* FXSYS_wcslwr(wchar_t* str) { } wchar_t* s = str; while (*str) { - *str = FXSYS_toASCIIlower(*str); + *str = FXSYS_towlower(*str); str++; } return s; @@ -151,7 +151,7 @@ wchar_t* FXSYS_wcsupr(wchar_t* str) { } wchar_t* s = str; while (*str) { - *str = FXSYS_toASCIIupper(*str); + *str = FXSYS_towupper(*str); str++; } return s; @@ -161,8 +161,8 @@ int FXSYS_stricmp(const char* dst, const char* src) { int f; int l; do { - f = FXSYS_toASCIIupper(*dst); - l = FXSYS_toASCIIupper(*src); + f = toupper(*dst); + l = toupper(*src); ++dst; ++src; } while (f && f == l); @@ -173,8 +173,8 @@ int FXSYS_wcsicmp(const wchar_t* dst, const wchar_t* src) { wchar_t f; wchar_t l; do { - f = FXSYS_toASCIIupper(*dst); - l = FXSYS_toASCIIupper(*src); + f = FXSYS_towupper(*dst); + l = FXSYS_towupper(*src); ++dst; ++src; } while (f && f == l); -- cgit v1.2.3