Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Issue 1757283002: Combine StrToInt methods. (Closed)

Created:
4 years, 9 months ago by dsinclair
Modified:
4 years, 9 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Combine StrToInt methods. This Cl combines the two StrToInt implementations. In doing so I had to add some more overrides to toDecimalDigit() and add a isDecimalDigit(). BUG=pdfium:423 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/1c91537c9f9669246713a5be628493ae2fc4899a

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -87 lines) Patch
M core/include/fxcrt/fx_ext.h View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp View 1 2 3 5 chunks +9 lines, -6 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 1 2 9 chunks +14 lines, -10 lines 0 comments Download
M core/src/fxcrt/fx_basic_gcc.cpp View 1 2 chunks +12 lines, -35 lines 0 comments Download
M core/src/fxcrt/fx_basic_wstring.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M core/src/fxcrt/fx_extension_unittest.cpp View 1 2 1 chunk +7 lines, -3 lines 0 comments Download
M core/src/fxcrt/fx_xml_parser.cpp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M fpdfsdk/src/javascript/PublicMethods.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/javascript/util.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M fpdfsdk/src/javascript/util.cpp View 1 2 3 1 chunk +0 lines, -24 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
dsinclair
PTAL.
4 years, 9 months ago (2016-03-03 14:22:30 UTC) #2
Tom Sepez
https://codereview.chromium.org/1757283002/diff/1/core/include/fxcrt/fx_ext.h File core/include/fxcrt/fx_ext.h (right): https://codereview.chromium.org/1757283002/diff/1/core/include/fxcrt/fx_ext.h#newcode64 core/include/fxcrt/fx_ext.h:64: inline int FXSYS_toDecimalDigit(const uint8_t c) { I worry about ...
4 years, 9 months ago (2016-03-03 19:26:47 UTC) #3
dsinclair
https://codereview.chromium.org/1757283002/diff/1/core/include/fxcrt/fx_ext.h File core/include/fxcrt/fx_ext.h (right): https://codereview.chromium.org/1757283002/diff/1/core/include/fxcrt/fx_ext.h#newcode64 core/include/fxcrt/fx_ext.h:64: inline int FXSYS_toDecimalDigit(const uint8_t c) { On 2016/03/03 19:26:47, ...
4 years, 9 months ago (2016-03-03 19:36:12 UTC) #4
dsinclair
https://codereview.chromium.org/1757283002/diff/1/core/src/fxcrt/fx_basic_gcc.cpp File core/src/fxcrt/fx_basic_gcc.cpp (right): https://codereview.chromium.org/1757283002/diff/1/core/src/fxcrt/fx_basic_gcc.cpp#newcode16 core/src/fxcrt/fx_basic_gcc.cpp:16: bool neg = false; On 2016/03/03 19:26:47, Tom Sepez ...
4 years, 9 months ago (2016-03-03 20:06:50 UTC) #5
Tom Sepez
https://codereview.chromium.org/1757283002/diff/1/core/include/fxcrt/fx_ext.h File core/include/fxcrt/fx_ext.h (right): https://codereview.chromium.org/1757283002/diff/1/core/include/fxcrt/fx_ext.h#newcode64 core/include/fxcrt/fx_ext.h:64: inline int FXSYS_toDecimalDigit(const uint8_t c) { On 2016/03/03 19:36:12, ...
4 years, 9 months ago (2016-03-03 20:14:58 UTC) #6
Tom Sepez
On 2016/03/03 20:14:58, Tom Sepez wrote: > https://codereview.chromium.org/1757283002/diff/1/core/include/fxcrt/fx_ext.h > File core/include/fxcrt/fx_ext.h (right): > > https://codereview.chromium.org/1757283002/diff/1/core/include/fxcrt/fx_ext.h#newcode64 ...
4 years, 9 months ago (2016-03-03 20:15:27 UTC) #7
dsinclair
https://codereview.chromium.org/1757283002/diff/1/core/include/fxcrt/fx_ext.h File core/include/fxcrt/fx_ext.h (right): https://codereview.chromium.org/1757283002/diff/1/core/include/fxcrt/fx_ext.h#newcode64 core/include/fxcrt/fx_ext.h:64: inline int FXSYS_toDecimalDigit(const uint8_t c) { On 2016/03/03 20:14:58, ...
4 years, 9 months ago (2016-03-03 20:26:01 UTC) #8
Tom Sepez
Forgive me for being picky, this LGTM, fix the others if you want. https://codereview.chromium.org/1757283002/diff/40001/core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp File ...
4 years, 9 months ago (2016-03-03 21:43:03 UTC) #9
dsinclair
PTAL at diff from #3 to #4. https://codereview.chromium.org/1757283002/diff/40001/core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp File core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp (right): https://codereview.chromium.org/1757283002/diff/40001/core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp#newcode536 core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp:536: int ch ...
4 years, 9 months ago (2016-03-03 22:01:43 UTC) #10
Tom Sepez
++LGTM https://codereview.chromium.org/1757283002/diff/40001/fpdfsdk/src/javascript/util.cpp File fpdfsdk/src/javascript/util.cpp (right): https://codereview.chromium.org/1757283002/diff/40001/fpdfsdk/src/javascript/util.cpp#newcode520 fpdfsdk/src/javascript/util.cpp:520: /* skip whitespace */ On 2016/03/03 22:01:43, dsinclair ...
4 years, 9 months ago (2016-03-03 22:10:31 UTC) #11
dsinclair
4 years, 9 months ago (2016-03-03 22:13:02 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
1c91537c9f9669246713a5be628493ae2fc4899a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698