From 735eda96cf24349d10b160c8f5bd363b73d8aba1 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Mon, 12 Mar 2018 15:44:36 +0000 Subject: Remove all usages of FXSYS_iswASCIIalpha Instances are either replaced with FXSYS_iswalpha, which calls out to the ICU library to do the proper Unicode operations, or have been converted to a isascii && isalpha pair, if ASCII alpha is actually what was wanted. BUG=pdfium:1035 Change-Id: I971ff639ee1ff818ad08793a1900a8bcbb0a3e04 Reviewed-on: https://pdfium-review.googlesource.com/28450 Reviewed-by: dsinclair Commit-Queue: Ryan Harrison --- core/fxcrt/fx_extension.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxcrt/fx_extension.h') diff --git a/core/fxcrt/fx_extension.h b/core/fxcrt/fx_extension.h index bd0ac8b303..fd7b78afdb 100644 --- a/core/fxcrt/fx_extension.h +++ b/core/fxcrt/fx_extension.h @@ -42,8 +42,8 @@ inline int32_t FXSYS_toASCIIupper(int32_t ch) { return ch < 'a' || ch > 'z' ? ch : (ch - 0x20); } -inline bool FXSYS_iswASCIIalpha(wchar_t wch) { - return FXSYS_isASCIIupper(wch) || FXSYS_isASCIIlower(wch); +inline bool FXSYS_iswalpha(wchar_t c) { + return u_isalpha(c); } inline bool FXSYS_iswalnum(wchar_t c) { -- cgit v1.2.3