Add a caller for FXSYS_ToUpperASCII() to simplify code.

In CBC_OnedCodaBarWriter::EncodeImpl(), replace lowercase ASCII
character to uppercase conversion code with a call to
FXSYS_ToUpperASCII().

Change-Id: I60a1b0c4a09aadb6386e6f86aedac6e181fede6e
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/67190
Commit-Queue: Hui Yingst <nigi@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/fxbarcode/oned/BC_OnedCodaBarWriter.cpp b/fxbarcode/oned/BC_OnedCodaBarWriter.cpp
index c4334c6..eb330a9 100644
--- a/fxbarcode/oned/BC_OnedCodaBarWriter.cpp
+++ b/fxbarcode/oned/BC_OnedCodaBarWriter.cpp
@@ -22,6 +22,7 @@
 
 #include "fxbarcode/oned/BC_OnedCodaBarWriter.h"
 
+#include "core/fxcrt/fx_extension.h"
 #include "fxbarcode/BC_Writer.h"
 #include "fxbarcode/common/BC_CommonBitMatrix.h"
 #include "fxbarcode/oned/BC_OneDimWriter.h"
@@ -139,10 +140,7 @@
   char ch;
   int32_t position = 0;
   for (size_t index = 0; index < data.GetLength(); index++) {
-    ch = data[index];
-    if (((ch >= 'a') && (ch <= 'z'))) {
-      ch = ch - 32;
-    }
+    ch = FXSYS_ToUpperASCII(data[index]);
     switch (ch) {
       case 'T':
         ch = 'A';