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

Issue 1861183002: Make CFX_WideString::FromUTF8() take a CFX_ByteStringC argument. (Closed)

Created:
4 years, 8 months ago by Tom Sepez
Modified:
4 years, 8 months ago
Reviewers:
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

Make CFX_WideString::FromUTF8() take a CFX_ByteStringC argument. Methods that take string arguments and do not persist them should take *StringC types as argument rather than discrete ptr/len args. Avoids a number of implicit casts from CFX_ByteString to char*. BUG= Committed: https://pdfium.googlesource.com/pdfium/+/6fe7d2174a47107578da912299c93b4dfb9f2add

Patch Set 1 #

Total comments: 14

Patch Set 2 : Rebase, combine delcs with initialization. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -245 lines) Patch
M core/fxcrt/fx_basic_wstring.cpp View 1 1 chunk +3 lines, -4 lines 0 comments Download
M core/fxcrt/include/fx_string.h View 1 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/javascript/Document.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M fpdfsdk/javascript/JS_Define.h View 4 chunks +8 lines, -8 lines 0 comments Download
M fpdfsdk/jsapi/fxjs_v8.cpp View 1 chunk +1 line, -1 line 0 comments Download
M testing/libfuzzer/pdf_fm2js_fuzzer.cc View 1 chunk +1 line, -1 line 0 comments Download
M testing/libfuzzer/pdf_xml_fuzzer.cc View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/BC_UtilCodingConvert.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M xfa/fxbarcode/cbc_codabar.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_code128.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_code39.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_datamatrix.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_ean13.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_ean8.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_pdf417i.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_qrcode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/cbc_upca.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffwidgetacc.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/fm2js/xfa_fm2jscontext.cpp View 1 37 chunks +65 lines, -95 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_serialize.cpp View 1 2 chunks +2 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_object_imp.cpp View 1 38 chunks +58 lines, -82 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp View 1 9 chunks +11 lines, -13 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.cpp View 1 7 chunks +7 lines, -14 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_signaturepseudomodel.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_utils_imp.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
Tom Sepez
Lei, for review.
4 years, 8 months ago (2016-04-05 23:49:14 UTC) #2
Lei Zhang
lgtm https://codereview.chromium.org/1861183002/diff/1/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp File xfa/fxfa/fm2js/xfa_fm2jscontext.cpp (right): https://codereview.chromium.org/1861183002/diff/1/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp#newcode1095 xfa/fxfa/fm2js/xfa_fm2jscontext.cpp:1095: IFX_LocaleMgr* pMgr = (IFX_LocaleMgr*)pDoc->GetLocalMgr(); BTW, there's a bunch ...
4 years, 8 months ago (2016-04-06 00:38:02 UTC) #3
Tom Sepez
https://codereview.chromium.org/1861183002/diff/1/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp File xfa/fxfa/fm2js/xfa_fm2jscontext.cpp (right): https://codereview.chromium.org/1861183002/diff/1/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp#newcode1095 xfa/fxfa/fm2js/xfa_fm2jscontext.cpp:1095: IFX_LocaleMgr* pMgr = (IFX_LocaleMgr*)pDoc->GetLocalMgr(); On 2016/04/06 00:38:01, Lei Zhang ...
4 years, 8 months ago (2016-04-06 17:23:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861183002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861183002/20001
4 years, 8 months ago (2016-04-06 17:25:06 UTC) #7
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 17:51:18 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/6fe7d2174a47107578da912299c93b4dfb9f...

Powered by Google App Engine
This is Rietveld 408576698