summaryrefslogtreecommitdiff
path: root/xfa/fgas
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-03-12 15:44:36 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-12 15:44:36 +0000
commit735eda96cf24349d10b160c8f5bd363b73d8aba1 (patch)
treef5ed61b45536165d9955236c8a30f89b87233e8e /xfa/fgas
parent15c0fccfeff5bf389b494a828c89adb3207c73d6 (diff)
downloadpdfium-735eda96cf24349d10b160c8f5bd363b73d8aba1.tar.xz
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 <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fgas')
-rw-r--r--xfa/fgas/crt/cfgas_formatstring.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fgas/crt/cfgas_formatstring.cpp b/xfa/fgas/crt/cfgas_formatstring.cpp
index e4185b83c9..d7273d0e4a 100644
--- a/xfa/fgas/crt/cfgas_formatstring.cpp
+++ b/xfa/fgas/crt/cfgas_formatstring.cpp
@@ -1096,7 +1096,7 @@ bool CFGAS_FormatString::ParseText(const WideString& wsSrcText,
break;
}
case 'A':
- if (FXSYS_iswASCIIalpha(pStrText[iText])) {
+ if (FXSYS_iswalpha(pStrText[iText])) {
*wsValue += pStrText[iText];
iText++;
}
@@ -1110,7 +1110,7 @@ bool CFGAS_FormatString::ParseText(const WideString& wsSrcText,
case 'O':
case '0':
if (FXSYS_isDecimalDigit(pStrText[iText]) ||
- FXSYS_iswASCIIalpha(pStrText[iText])) {
+ FXSYS_iswalpha(pStrText[iText])) {
*wsValue += pStrText[iText];
iText++;
}
@@ -1815,7 +1815,7 @@ bool CFGAS_FormatString::FormatText(const WideString& wsSrcText,
break;
}
case 'A':
- if (iText >= iLenText || !FXSYS_iswASCIIalpha(pStrText[iText]))
+ if (iText >= iLenText || !FXSYS_iswalpha(pStrText[iText]))
return false;
*wsOutput += pStrText[iText++];
@@ -1831,7 +1831,7 @@ bool CFGAS_FormatString::FormatText(const WideString& wsSrcText,
case 'O':
case '0':
if (iText >= iLenText || (!FXSYS_isDecimalDigit(pStrText[iText]) &&
- !FXSYS_iswASCIIalpha(pStrText[iText]))) {
+ !FXSYS_iswalpha(pStrText[iText]))) {
return false;
}
*wsOutput += pStrText[iText++];