| 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 if (iStart < 0) { | 428 if (iStart < 0) { |
| 429 return -1; | 429 return -1; |
| 430 } | 430 } |
| 431 for (; iStart < (int)m_nSize; iStart++) | 431 for (; iStart < (int)m_nSize; iStart++) |
| 432 if (((TYPE*)m_pData)[iStart] == data) { | 432 if (((TYPE*)m_pData)[iStart] == data) { |
| 433 return iStart; | 433 return iStart; |
| 434 } | 434 } |
| 435 return -1; | 435 return -1; |
| 436 } | 436 } |
| 437 }; | 437 }; |
| 438 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray; | |
| 439 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray; | 438 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray; |
| 440 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; | 439 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; |
| 441 #ifdef PDF_ENABLE_XFA | 440 #ifdef PDF_ENABLE_XFA |
| 441 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray; |
| 442 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray; | 442 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray; |
| 443 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; | 443 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; |
| 444 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; | 444 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; |
| 445 #endif // PDF_ENABLE_XFA | 445 #endif // PDF_ENABLE_XFA |
| 446 | 446 |
| 447 template <class ObjectClass> | 447 template <class ObjectClass> |
| 448 class CFX_ObjectArray : public CFX_BasicArray { | 448 class CFX_ObjectArray : public CFX_BasicArray { |
| 449 public: | 449 public: |
| 450 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {} | 450 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {} |
| 451 | 451 |
| (...skipping 767 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 |