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

Issue 1732223002: Use std::lower_bound() in a couple places. (Closed)

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

Description

Use std::lower_bound() in a couple places. Do some cleanups along the way. R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/f8e21f34e9b67c5b9e754e949c58a5113ea4d746

Patch Set 1 #

Total comments: 9

Patch Set 2 : address comments #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -153 lines) Patch
M core/src/fxge/ge/fx_ge_fontmap.cpp View 1 3 chunks +19 lines, -24 lines 0 comments Download
M xfa/src/fgas/src/localization/fx_locale.cpp View 2 chunks +7 lines, -18 lines 0 comments Download
M xfa/src/fxfa/src/fm2js/xfa_simpleexpression.h View 4 chunks +77 lines, -64 lines 0 comments Download
M xfa/src/fxfa/src/fm2js/xfa_simpleexpression.cpp View 9 chunks +52 lines, -47 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Lei Zhang
https://codereview.chromium.org/1732223002/diff/1/core/src/fxge/ge/fx_ge_fontmap.cpp File core/src/fxge/ge/fx_ge_fontmap.cpp (right): https://codereview.chromium.org/1732223002/diff/1/core/src/fxge/ge/fx_ge_fontmap.cpp#newcode209 core/src/fxge/ge/fx_ge_fontmap.cpp:209: {78, 10001}, {81, 10002}, {79, 10003}, {84, 10004}, {83, ...
4 years, 9 months ago (2016-02-25 20:11:27 UTC) #2
Tom Sepez
https://codereview.chromium.org/1732223002/diff/1/core/src/fxge/ge/fx_ge_fontmap.cpp File core/src/fxge/ge/fx_ge_fontmap.cpp (right): https://codereview.chromium.org/1732223002/diff/1/core/src/fxge/ge/fx_ge_fontmap.cpp#newcode202 core/src/fxge/ge/fx_ge_fontmap.cpp:202: uint8_t charset; Can we call this CODEPAGE_MAP and flip ...
4 years, 9 months ago (2016-02-25 20:32:53 UTC) #3
Lei Zhang
https://codereview.chromium.org/1732223002/diff/1/core/src/fxge/ge/fx_ge_fontmap.cpp File core/src/fxge/ge/fx_ge_fontmap.cpp (right): https://codereview.chromium.org/1732223002/diff/1/core/src/fxge/ge/fx_ge_fontmap.cpp#newcode202 core/src/fxge/ge/fx_ge_fontmap.cpp:202: uint8_t charset; On 2016/02/25 20:32:53, Tom Sepez wrote: > ...
4 years, 9 months ago (2016-02-25 20:48:16 UTC) #4
Tom Sepez
lgtm https://codereview.chromium.org/1732223002/diff/1/core/src/fxge/ge/fx_ge_fontmap.cpp File core/src/fxge/ge/fx_ge_fontmap.cpp (right): https://codereview.chromium.org/1732223002/diff/1/core/src/fxge/ge/fx_ge_fontmap.cpp#newcode288 core/src/fxge/ge/fx_ge_fontmap.cpp:288: std::lower_bound(g_Codepage2CharsetTable, pEnd, codepage, On 2016/02/25 20:48:16, Lei Zhang ...
4 years, 9 months ago (2016-02-25 22:20:14 UTC) #5
Lei Zhang
4 years, 9 months ago (2016-02-25 22:35:29 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
f8e21f34e9b67c5b9e754e949c58a5113ea4d746 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698