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

Issue 1857713003: Rename GetCStr and GetPtr to match CFX_ByteString (Closed)

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

Description

Rename GetCStr and GetPtr to match CFX_ByteString. This CL updates CFX_ByteStringC to use the more common c_str and raw_str instead of GetCStr and GetPtr. Committed: https://pdfium.googlesource.com/pdfium/+/179bebb9a14dfd3ba91e9e068d4d436657a7c780

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -223 lines) Patch
M core/fpdfapi/fpdf_font/fpdf_font.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_generalstatedata.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_simple_parser.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_simple_parser_unittest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfdoc/doc_basic.cpp View 1 2 3 chunks +13 lines, -13 lines 0 comments Download
M core/fxcrt/fx_basic_bstring.cpp View 1 9 chunks +11 lines, -12 lines 0 comments Download
M core/fxcrt/fx_basic_bstring_unittest.cpp View 1 2 chunks +5 lines, -5 lines 0 comments Download
M core/fxcrt/fx_basic_buffer.cpp View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M core/fxcrt/fx_basic_util.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M core/fxcrt/fx_basic_wstring.cpp View 1 5 chunks +6 lines, -6 lines 0 comments Download
M core/fxcrt/fx_xml_composer.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fxcrt/fxcrt_platforms.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M core/fxcrt/fxcrt_posix.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fxcrt/fxcrt_windows.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M core/fxcrt/include/fx_string.h View 1 2 5 chunks +8 lines, -6 lines 0 comments Download
M core/fxge/android/fpf_skiafontmgr.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M fpdfsdk/fpdfxfa/fpdfxfa_app.cpp View 1 5 chunks +10 lines, -10 lines 0 comments Download
M fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/javascript/cjs_runtime.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fde/css/fde_csscache.cpp View 1 1 chunk +5 lines, -4 lines 0 comments Download
M xfa/fde/css/fde_cssstyleselector.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fee/fde_txtedtengine.cpp View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
M xfa/fgas/crt/fgas_stream.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fgas/localization/fgas_locale.cpp View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M xfa/fwl/theme/cfwl_widgettp.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_checksum.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffbarcode.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffdoc.cpp View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_fontmgr.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_textlayout.cpp View 1 5 chunks +5 lines, -5 lines 0 comments Download
M xfa/fxfa/fm2js/xfa_fm2jscontext.cpp View 1 2 25 chunks +35 lines, -45 lines 0 comments Download
M xfa/fxfa/fm2js/xfa_lexer.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download
M xfa/fxfa/fm2js/xfa_simpleexpression.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_basic_imp.cpp View 1 7 chunks +8 lines, -7 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_datamerger_imp.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_imp.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_serialize.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_itemlayout.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_object_imp.cpp View 1 2 12 chunks +13 lines, -13 lines 0 comments Download
M xfa/fxfa/parser/xfa_objectacc_imp.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.cpp View 1 9 chunks +9 lines, -9 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_resolveprocessor.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_utils_imp.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxjse/dynprop.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxjse/value.h View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxjse/value.cpp View 7 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
dsinclair
PTAL.
4 years, 8 months ago (2016-04-04 17:07:07 UTC) #2
Tom Sepez
lgtm Is there a wide equivalent? https://codereview.chromium.org/1857713003/diff/1/core/fxcrt/include/fx_string.h File core/fxcrt/include/fx_string.h (right): https://codereview.chromium.org/1857713003/diff/1/core/fxcrt/include/fx_string.h#newcode96 core/fxcrt/include/fx_string.h:96: const FX_CHAR* c_str() ...
4 years, 8 months ago (2016-04-04 18:22:40 UTC) #3
dsinclair
I didn't see a WChar version, but I did notice that GetPtr should be raw_str ...
4 years, 8 months ago (2016-04-04 18:33:34 UTC) #5
Tom Sepez
lgtm
4 years, 8 months ago (2016-04-05 17:17:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1857713003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1857713003/20001
4 years, 8 months ago (2016-04-05 17:19:28 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_no_v8 on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/linux_no_v8/builds/100) win on master.tryserver.client.pdfium (JOB_FAILED, ...
4 years, 8 months ago (2016-04-05 17:30:26 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1857713003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1857713003/40001
4 years, 8 months ago (2016-04-05 17:38:46 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 18:02:22 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/179bebb9a14dfd3ba91e9e068d4d436657a7...

Powered by Google App Engine
This is Rietveld 408576698