diff options
author | Lei Zhang <thestig@chromium.org> | 2017-05-04 12:13:55 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-04 22:39:39 +0000 |
commit | e8c1d4144e8407c0631116a954fa347dd39375ff (patch) | |
tree | 6a91c1197a5c183ce0cb7c792755d121dd1ca9b6 /core/fpdfapi/page | |
parent | 426b85af0f780e312221b061e2699c31821872f9 (diff) | |
download | pdfium-e8c1d4144e8407c0631116a954fa347dd39375ff.tar.xz |
Give a couple of char to int functions better names.chromium/3090
- 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>
Diffstat (limited to 'core/fpdfapi/page')
-rw-r--r-- | core/fpdfapi/page/cpdf_streamparser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/page/cpdf_streamparser.cpp b/core/fpdfapi/page/cpdf_streamparser.cpp index 76b58c9f4a..e8116cf980 100644 --- a/core/fpdfapi/page/cpdf_streamparser.cpp +++ b/core/fpdfapi/page/cpdf_streamparser.cpp @@ -500,7 +500,7 @@ CFX_ByteString CPDF_StreamParser::ReadString() { break; case 1: if (ch >= '0' && ch <= '7') { - iEscCode = FXSYS_toDecimalDigit(static_cast<wchar_t>(ch)); + iEscCode = FXSYS_DecimalCharToInt(static_cast<char>(ch)); status = 2; break; } @@ -526,7 +526,7 @@ CFX_ByteString CPDF_StreamParser::ReadString() { case 2: if (ch >= '0' && ch <= '7') { iEscCode = - iEscCode * 8 + FXSYS_toDecimalDigit(static_cast<wchar_t>(ch)); + iEscCode * 8 + FXSYS_DecimalCharToInt(static_cast<char>(ch)); status = 3; } else { buf.AppendChar(iEscCode); @@ -537,7 +537,7 @@ CFX_ByteString CPDF_StreamParser::ReadString() { case 3: if (ch >= '0' && ch <= '7') { iEscCode = - iEscCode * 8 + FXSYS_toDecimalDigit(static_cast<wchar_t>(ch)); + iEscCode * 8 + FXSYS_DecimalCharToInt(static_cast<char>(ch)); buf.AppendChar(iEscCode); status = 0; } else { @@ -583,7 +583,7 @@ CFX_ByteString CPDF_StreamParser::ReadHexString() { if (!std::isxdigit(ch)) continue; - int val = FXSYS_toHexDigit(ch); + int val = FXSYS_HexCharToInt(ch); if (bFirst) { code = val * 16; } else { |