Cleanup some numeric code.
authorDan Sinclair <dsinclair@chromium.org>
Thu, 29 Oct 2015 18:56:26 +0000 (14:56 -0400)
committerDan Sinclair <dsinclair@chromium.org>
Thu, 29 Oct 2015 18:56:26 +0000 (14:56 -0400)
commit589f7e0a57675efce9810c15a3e9b7c49bf0bc90
tree6839707c05c00f227744ffc3788665cb1cb5b7bd
parent6ed0028f1cf12ee53e9e7f657b7ba186c77a42f3
Cleanup some numeric code.

This changes the various comparisons of char >= '0' && char <= '9' and
char < '0' || char > '9' to use std::isdigit checks. It also cleans up
a handful of hex to digit conversions to call one common method.

R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1415933005 .
22 files changed:
BUILD.gn
core/include/fxcrt/fx_ext.h
core/src/fpdfapi/fpdf_font/fpdf_font.cpp
core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp
core/src/fpdftext/fpdf_text.cpp
core/src/fpdftext/fpdf_text_int.cpp
core/src/fxcodec/codec/fx_codec.cpp
core/src/fxcrt/fx_basic_bstring.cpp
core/src/fxcrt/fx_basic_gcc.cpp
core/src/fxcrt/fx_basic_util.cpp
core/src/fxcrt/fx_basic_wstring.cpp
core/src/fxcrt/fx_extension.cpp
core/src/fxcrt/fx_extension_unittest.cpp [new file with mode: 0644]
fpdfsdk/src/fsdk_baseannot.cpp
fpdfsdk/src/javascript/PublicMethods.cpp
fpdfsdk/src/javascript/util.cpp
pdfium.gyp