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

Side by Side Diff: core/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp

Issue 1832173003: Remove FX_DWORD from core/ and delete definition (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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
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 "core/fpdfapi/fpdf_parser/fpdf_parser_utility.h" 7 #include "core/fpdfapi/fpdf_parser/fpdf_parser_utility.h"
8 8
9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 buf << "/" << PDF_NameEncode(str); 172 buf << "/" << PDF_NameEncode(str);
173 break; 173 break;
174 } 174 }
175 case CPDF_Object::REFERENCE: { 175 case CPDF_Object::REFERENCE: {
176 buf << " " << pObj->AsReference()->GetRefObjNum() << " 0 R "; 176 buf << " " << pObj->AsReference()->GetRefObjNum() << " 0 R ";
177 break; 177 break;
178 } 178 }
179 case CPDF_Object::ARRAY: { 179 case CPDF_Object::ARRAY: {
180 const CPDF_Array* p = pObj->AsArray(); 180 const CPDF_Array* p = pObj->AsArray();
181 buf << "["; 181 buf << "[";
182 for (FX_DWORD i = 0; i < p->GetCount(); i++) { 182 for (uint32_t i = 0; i < p->GetCount(); i++) {
183 CPDF_Object* pElement = p->GetElement(i); 183 CPDF_Object* pElement = p->GetElement(i);
184 if (pElement->GetObjNum()) { 184 if (pElement->GetObjNum()) {
185 buf << " " << pElement->GetObjNum() << " 0 R"; 185 buf << " " << pElement->GetObjNum() << " 0 R";
186 } else { 186 } else {
187 buf << pElement; 187 buf << pElement;
188 } 188 }
189 } 189 }
190 buf << "]"; 190 buf << "]";
191 break; 191 break;
192 } 192 }
(...skipping 21 matching lines...) Expand all
214 buf.AppendBlock(acc.GetData(), acc.GetSize()); 214 buf.AppendBlock(acc.GetData(), acc.GetSize());
215 buf << "\r\nendstream"; 215 buf << "\r\nendstream";
216 break; 216 break;
217 } 217 }
218 default: 218 default:
219 ASSERT(FALSE); 219 ASSERT(FALSE);
220 break; 220 break;
221 } 221 }
222 return buf; 222 return buf;
223 } 223 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp ('k') | core/fpdfapi/fpdf_parser/include/cfdf_document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698