Add FXSYS_IsLowerASCII().

Add FXSYS_IsLowerASCII() to check whether a character is a lowercase
ASCII character.

This CL also adds callers for FXSYS_IsLowerASCII() to replace all
lowercase ASCII character checks across PDFium.

Change-Id: Id131f6c95c5221a69cd9225d421bd58f8e23d02b
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/67210
Commit-Queue: Hui Yingst <nigi@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/core/fxcrt/fx_extension.h b/core/fxcrt/fx_extension.h
index fba9544..69dedce 100644
--- a/core/fxcrt/fx_extension.h
+++ b/core/fxcrt/fx_extension.h
@@ -48,12 +48,16 @@
   return u_toupper(c);
 }
 
+inline bool FXSYS_IsLowerASCII(int32_t c) {
+  return c >= 'a' && c <= 'z';
+}
+
 inline bool FXSYS_IsUpperASCII(int32_t c) {
   return c >= 'A' && c <= 'Z';
 }
 
 inline char FXSYS_ToUpperASCII(char c) {
-  return (c >= 'a' && c <= 'z') ? (c + ('A' - 'a')) : c;
+  return FXSYS_IsLowerASCII(c) ? (c + ('A' - 'a')) : c;
 }
 
 inline bool FXSYS_iswalpha(wchar_t c) {