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

Side by Side Diff: core/fpdfdoc/doc_form.cpp

Issue 1889863002: Make CPDF_Dictionary methods take CFX_ByteString arguments (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: One last caller. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fpdfdoc/doc_basic.cpp ('k') | core/fpdfdoc/doc_formcontrol.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h" 9 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h"
10 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" 10 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 return csTmp; 336 return csTmp;
337 } 337 }
338 CPDF_Dictionary* pDict = pResDict->GetDictBy(csType); 338 CPDF_Dictionary* pDict = pResDict->GetDictBy(csType);
339 if (!pDict) { 339 if (!pDict) {
340 return csTmp; 340 return csTmp;
341 } 341 }
342 int num = 0; 342 int num = 0;
343 CFX_ByteString bsNum; 343 CFX_ByteString bsNum;
344 while (TRUE) { 344 while (TRUE) {
345 CFX_ByteString csKey = csTmp + bsNum; 345 CFX_ByteString csKey = csTmp + bsNum;
346 if (!pDict->KeyExist(csKey.AsStringC())) { 346 if (!pDict->KeyExist(csKey)) {
347 return csKey; 347 return csKey;
348 } 348 }
349 if (m < iCount) { 349 if (m < iCount) {
350 csTmp += csStr[m++]; 350 csTmp += csStr[m++];
351 } else { 351 } else {
352 bsNum.Format("%d", num++); 352 bsNum.Format("%d", num++);
353 } 353 }
354 m++; 354 m++;
355 } 355 }
356 return csTmp; 356 return csTmp;
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 FDF_ImportField(pField, L"", bNotify); 1201 FDF_ImportField(pField, L"", bNotify);
1202 } 1202 }
1203 if (bNotify && m_pFormNotify) { 1203 if (bNotify && m_pFormNotify) {
1204 m_pFormNotify->AfterFormImportData(this); 1204 m_pFormNotify->AfterFormImportData(this);
1205 } 1205 }
1206 return TRUE; 1206 return TRUE;
1207 } 1207 }
1208 void CPDF_InterForm::SetFormNotify(const CPDF_FormNotify* pNotify) { 1208 void CPDF_InterForm::SetFormNotify(const CPDF_FormNotify* pNotify) {
1209 m_pFormNotify = (CPDF_FormNotify*)pNotify; 1209 m_pFormNotify = (CPDF_FormNotify*)pNotify;
1210 } 1210 }
OLDNEW
« no previous file with comments | « core/fpdfdoc/doc_basic.cpp ('k') | core/fpdfdoc/doc_formcontrol.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698