From e247ec47b75d45d16298e4e11ba68745b9ebe3eb Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 20 Apr 2017 21:41:36 -0700 Subject: 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 Reviewed-by: Tom Sepez --- fxbarcode/oned/BC_OnedEAN13Writer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fxbarcode/oned/BC_OnedEAN13Writer.cpp') 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 +#include #include #include @@ -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( -- cgit v1.2.3