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 /fxbarcode/oned/BC_OnedEAN13Writer.cpp | |
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 'fxbarcode/oned/BC_OnedEAN13Writer.cpp')
-rw-r--r-- | fxbarcode/oned/BC_OnedEAN13Writer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fxbarcode/oned/BC_OnedEAN13Writer.cpp b/fxbarcode/oned/BC_OnedEAN13Writer.cpp index 7f38661079..d44eb39916 100644 --- a/fxbarcode/oned/BC_OnedEAN13Writer.cpp +++ b/fxbarcode/oned/BC_OnedEAN13Writer.cpp @@ -22,6 +22,8 @@ #include "fxbarcode/oned/BC_OnedEAN13Writer.h" +#include <algorithm> +#include <cwctype> #include <memory> #include <vector> @@ -55,8 +57,7 @@ CBC_OnedEAN13Writer::~CBC_OnedEAN13Writer() {} bool CBC_OnedEAN13Writer::CheckContentValidity( const CFX_WideStringC& contents) { - return std::all_of(contents.begin(), contents.end(), - [](const wchar_t& w) { return w >= L'0' && w <= L'9'; }); + return std::all_of(contents.begin(), contents.end(), std::iswdigit); } CFX_WideString CBC_OnedEAN13Writer::FilterContents( |