summaryrefslogtreecommitdiff
path: root/fxjs/cjs_util.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-03-13 15:16:00 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-13 15:16:00 +0000
commit7a1aa5f659110e99950b00b6b326b41436872635 (patch)
tree16d89f9e2fc865b1a7a7727190938ad8499551e5 /fxjs/cjs_util.cpp
parent0c6b98182403868334b4dfe4852caa4d0e2ba272 (diff)
downloadpdfium-7a1aa5f659110e99950b00b6b326b41436872635.tar.xz
Remove usage of FXSYS_*ASCIIlower/upper methodschromium/3370
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 <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fxjs/cjs_util.cpp')
-rw-r--r--fxjs/cjs_util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_util.cpp b/fxjs/cjs_util.cpp
index 25d4590259..883d022006 100644
--- a/fxjs/cjs_util.cpp
+++ b/fxjs/cjs_util.cpp
@@ -264,9 +264,9 @@ CJS_Return CJS_Util::printx(CJS_Runtime* pRuntime,
enum CaseMode { kPreserveCase, kUpperCase, kLowerCase };
static wchar_t TranslateCase(wchar_t input, CaseMode eMode) {
- if (eMode == kLowerCase && FXSYS_isASCIIupper(input))
+ if (eMode == kLowerCase && FXSYS_iswupper(input))
return input | 0x20;
- if (eMode == kUpperCase && FXSYS_isASCIIlower(input))
+ if (eMode == kUpperCase && FXSYS_iswlower(input))
return input & ~0x20;
return input;
}