| Index: core/src/fpdftext/fpdf_text_int.cpp
|
| diff --git a/core/src/fpdftext/fpdf_text_int.cpp b/core/src/fpdftext/fpdf_text_int.cpp
|
| index 9ab09e19e44dab52fd3a2779ed6d525d95cfa4ae..869d63e8efa5a80b2f1e05ddcdd7765aaa3329c3 100644
|
| --- a/core/src/fpdftext/fpdf_text_int.cpp
|
| +++ b/core/src/fpdftext/fpdf_text_int.cpp
|
| @@ -4,7 +4,7 @@
|
|
|
| // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
|
|
|
| -#include <ctype.h>
|
| +#include <cctype>
|
| #include <algorithm>
|
|
|
| #include "../../../third_party/base/nonstd_unique_ptr.h"
|
| @@ -2433,12 +2433,11 @@ FX_BOOL CPDF_TextPageFind::IsMatchWholeWord(const CFX_WideString& csPageText,
|
| }
|
| if ((char_left > 'A' && char_left < 'a') ||
|
| (char_left > 'a' && char_left < 'z') ||
|
| - (char_left > 0xfb00 && char_left < 0xfb06) ||
|
| - (char_left >= '0' && char_left <= '9') ||
|
| + (char_left > 0xfb00 && char_left < 0xfb06) || std::isdigit(char_left) ||
|
| (char_right > 'A' && char_right < 'a') ||
|
| (char_right > 'a' && char_right < 'z') ||
|
| (char_right > 0xfb00 && char_right < 0xfb06) ||
|
| - (char_right >= '0' && char_right <= '9')) {
|
| + std::isdigit(char_right)) {
|
| return FALSE;
|
| }
|
| if (!(('A' > char_left || char_left > 'Z') &&
|
|
|