diff options
author | Lei Zhang <thestig@chromium.org> | 2017-04-20 21:41:36 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-21 04:53:07 +0000 |
commit | e247ec47b75d45d16298e4e11ba68745b9ebe3eb (patch) | |
tree | e121024f171c04c928459b258b8cae1c1b9d0b56 /core/fxcrt/fx_extension.h | |
parent | 1badb85e5c3a4b4cd42ca1a2b223d6b3bc67cc4a (diff) | |
download | pdfium-e247ec47b75d45d16298e4e11ba68745b9ebe3eb.tar.xz |
Replace FXSYS_iswdigit with std::iswdigit.
Replace other one-off implementations as well.
Change-Id: I2878f3fae479c12b7de5234ee3a26477d602d14d
Reviewed-on: https://pdfium-review.googlesource.com/4398
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_extension.h')
-rw-r--r-- | core/fxcrt/fx_extension.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/fxcrt/fx_extension.h b/core/fxcrt/fx_extension.h index e9d16786a9..00604fb22c 100644 --- a/core/fxcrt/fx_extension.h +++ b/core/fxcrt/fx_extension.h @@ -41,12 +41,8 @@ inline bool FXSYS_iswalpha(wchar_t wch) { return (wch >= L'A' && wch <= L'Z') || (wch >= L'a' && wch <= L'z'); } -inline bool FXSYS_iswdigit(wchar_t wch) { - return wch >= L'0' && wch <= L'9'; -} - inline bool FXSYS_iswalnum(wchar_t wch) { - return FXSYS_iswalpha(wch) || FXSYS_iswdigit(wch); + return FXSYS_iswalpha(wch) || std::iswdigit(wch); } inline bool FXSYS_iswspace(wchar_t c) { |