OLD | NEW |
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 #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 7 #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 CFX_BasicArray::RemoveAt(index, 1); | 538 CFX_BasicArray::RemoveAt(index, 1); |
539 } | 539 } |
540 | 540 |
541 void RemoveAll() { | 541 void RemoveAll() { |
542 for (int i = 0; i < m_nSize; i++) { | 542 for (int i = 0; i < m_nSize; i++) { |
543 ((ObjectClass*)GetDataPtr(i))->~ObjectClass(); | 543 ((ObjectClass*)GetDataPtr(i))->~ObjectClass(); |
544 } | 544 } |
545 CFX_BasicArray::SetSize(0); | 545 CFX_BasicArray::SetSize(0); |
546 } | 546 } |
547 }; | 547 }; |
| 548 #ifdef PDF_ENABLE_XFA |
548 typedef CFX_ObjectArray<CFX_ByteString> CFX_ByteStringArray; | 549 typedef CFX_ObjectArray<CFX_ByteString> CFX_ByteStringArray; |
549 typedef CFX_ObjectArray<CFX_WideString> CFX_WideStringArray; | 550 typedef CFX_ObjectArray<CFX_WideString> CFX_WideStringArray; |
550 #ifdef PDF_ENABLE_XFA | |
551 class CFX_BaseSegmentedArray { | 551 class CFX_BaseSegmentedArray { |
552 public: | 552 public: |
553 CFX_BaseSegmentedArray(int unit_size = 1, | 553 CFX_BaseSegmentedArray(int unit_size = 1, |
554 int segment_units = 512, | 554 int segment_units = 512, |
555 int index_size = 8); | 555 int index_size = 8); |
556 | 556 |
557 ~CFX_BaseSegmentedArray(); | 557 ~CFX_BaseSegmentedArray(); |
558 | 558 |
559 void SetUnitSize(int unit_size, int segment_units, int index_size = 8); | 559 void SetUnitSize(int unit_size, int segment_units, int index_size = 8); |
560 | 560 |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 FX_FLOAT c; | 1219 FX_FLOAT c; |
1220 FX_FLOAT d; | 1220 FX_FLOAT d; |
1221 FX_FLOAT e; | 1221 FX_FLOAT e; |
1222 FX_FLOAT f; | 1222 FX_FLOAT f; |
1223 FX_FLOAT g; | 1223 FX_FLOAT g; |
1224 FX_FLOAT h; | 1224 FX_FLOAT h; |
1225 FX_FLOAT i; | 1225 FX_FLOAT i; |
1226 }; | 1226 }; |
1227 | 1227 |
1228 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 1228 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
OLD | NEW |