| 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 return -1; | 391 return -1; |
| 392 } | 392 } |
| 393 for (; iStart < (int)m_nSize; iStart++) | 393 for (; iStart < (int)m_nSize; iStart++) |
| 394 if (((TYPE*)m_pData)[iStart] == data) { | 394 if (((TYPE*)m_pData)[iStart] == data) { |
| 395 return iStart; | 395 return iStart; |
| 396 } | 396 } |
| 397 return -1; | 397 return -1; |
| 398 } | 398 } |
| 399 }; | 399 }; |
| 400 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray; | 400 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray; |
| 401 |
| 401 #ifdef PDF_ENABLE_XFA | 402 #ifdef PDF_ENABLE_XFA |
| 403 typedef CFX_ArrayTemplate<CFX_WideStringC> CFX_WideStringCArray; |
| 402 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray; | 404 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray; |
| 403 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray; | 405 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray; |
| 404 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; | 406 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; |
| 405 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; | 407 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; |
| 406 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; | 408 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; |
| 407 #endif // PDF_ENABLE_XFA | 409 #endif // PDF_ENABLE_XFA |
| 408 | 410 |
| 409 #ifdef PDF_ENABLE_XFA | 411 #ifdef PDF_ENABLE_XFA |
| 410 template <class ObjectClass> | 412 template <class ObjectClass> |
| 411 class CFX_ObjectArray : public CFX_BasicArray { | 413 class CFX_ObjectArray : public CFX_BasicArray { |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 FX_FLOAT c; | 1164 FX_FLOAT c; |
| 1163 FX_FLOAT d; | 1165 FX_FLOAT d; |
| 1164 FX_FLOAT e; | 1166 FX_FLOAT e; |
| 1165 FX_FLOAT f; | 1167 FX_FLOAT f; |
| 1166 FX_FLOAT g; | 1168 FX_FLOAT g; |
| 1167 FX_FLOAT h; | 1169 FX_FLOAT h; |
| 1168 FX_FLOAT i; | 1170 FX_FLOAT i; |
| 1169 }; | 1171 }; |
| 1170 | 1172 |
| 1171 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 1173 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
| OLD | NEW |