commit | e8c1d4144e8407c0631116a954fa347dd39375ff | [log] [tgz] |
---|---|---|
author | Lei Zhang <thestig@chromium.org> | Thu May 04 12:13:55 2017 -0700 |
committer | Chromium commit bot <commit-bot@chromium.org> | Thu May 04 22:39:39 2017 +0000 |
tree | 6a91c1197a5c183ce0cb7c792755d121dd1ca9b6 | |
parent | 426b85af0f780e312221b061e2699c31821872f9 [diff] [blame] |
Give a couple of char to int functions better names. - FXSYS_toDecimalDigit() becomes FXSYS_DecimalCharToInt(). - FXSYS_toHexDigit() becomes FXSYS_HexCharToInt(). Change-Id: If4683e8f85f05124b92ff075056cbc295442087d Reviewed-on: https://pdfium-review.googlesource.com/4930 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/fpdfsdk/javascript/PublicMethods.cpp b/fpdfsdk/javascript/PublicMethods.cpp index 759fd91..2efcacd 100644 --- a/fpdfsdk/javascript/PublicMethods.cpp +++ b/fpdfsdk/javascript/PublicMethods.cpp
@@ -238,7 +238,7 @@ if (!std::iswdigit(c)) break; - nRet = nRet * 10 + FXSYS_toDecimalDigit(c); + nRet = nRet * 10 + FXSYS_DecimalCharToInt(c); nSkip = i - nStart + 1; if (nSkip >= nMaxStep) break;