summaryrefslogtreecommitdiff
path: root/core/fpdftext/cpdf_textpage.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-24 16:28:07 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-25 00:07:29 +0000
commitef002c85521278e3082517297cf60372d7751cb1 (patch)
treebe0148d89603262c1bf11f16621a1c43509759db /core/fpdftext/cpdf_textpage.cpp
parent3684a151e76991bc67dd397cba66b0620cc38bae (diff)
downloadpdfium-ef002c85521278e3082517297cf60372d7751cb1.tar.xz
Use fx_extension.h utilities in more places.
Change-Id: Iba1aa793567e69acc3cc1acbd5b9a9f531c80b7a Reviewed-on: https://pdfium-review.googlesource.com/4453 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdftext/cpdf_textpage.cpp')
-rw-r--r--core/fpdftext/cpdf_textpage.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/fpdftext/cpdf_textpage.cpp b/core/fpdftext/cpdf_textpage.cpp
index a1f056cc37..c64b8e17ae 100644
--- a/core/fpdftext/cpdf_textpage.cpp
+++ b/core/fpdftext/cpdf_textpage.cpp
@@ -1226,12 +1226,8 @@ bool CPDF_TextPage::IsHyphen(wchar_t curChar) {
if (0x2D == wcTmp || 0xAD == wcTmp) {
if (--nIndex > 0) {
wchar_t preChar = strCurText.GetAt((nIndex));
- if (((preChar >= L'A' && preChar <= L'Z') ||
- (preChar >= L'a' && preChar <= L'z')) &&
- ((curChar >= L'A' && curChar <= L'Z') ||
- (curChar >= L'a' && curChar <= L'z'))) {
+ if (FXSYS_iswalpha(preChar) && FXSYS_iswalpha(curChar))
return true;
- }
}
const PAGECHAR_INFO* preInfo;
if (!m_TempCharList.empty())