| 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_FXCRT_INCLUDE_FX_BASIC_H_ | 7 #ifndef CORE_FXCRT_INCLUDE_FX_BASIC_H_ |
| 8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_ | 8 #define CORE_FXCRT_INCLUDE_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 if (iStart < 0) { | 391 if (iStart < 0) { |
| 392 return -1; | 392 return -1; |
| 393 } | 393 } |
| 394 for (; iStart < (int)m_nSize; iStart++) | 394 for (; iStart < (int)m_nSize; iStart++) |
| 395 if (((TYPE*)m_pData)[iStart] == data) { | 395 if (((TYPE*)m_pData)[iStart] == data) { |
| 396 return iStart; | 396 return iStart; |
| 397 } | 397 } |
| 398 return -1; | 398 return -1; |
| 399 } | 399 } |
| 400 }; | 400 }; |
| 401 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray; | |
| 402 | 401 |
| 403 #ifdef PDF_ENABLE_XFA | 402 #ifdef PDF_ENABLE_XFA |
| 404 typedef CFX_ArrayTemplate<CFX_WideStringC> CFX_WideStringCArray; | 403 typedef CFX_ArrayTemplate<CFX_WideStringC> CFX_WideStringCArray; |
| 405 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray; | 404 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray; |
| 406 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; | 405 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; |
| 407 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; | 406 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; |
| 408 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; | 407 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; |
| 409 #endif // PDF_ENABLE_XFA | 408 #endif // PDF_ENABLE_XFA |
| 410 | 409 |
| 411 #ifdef PDF_ENABLE_XFA | 410 #ifdef PDF_ENABLE_XFA |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 FX_FLOAT c; | 1143 FX_FLOAT c; |
| 1145 FX_FLOAT d; | 1144 FX_FLOAT d; |
| 1146 FX_FLOAT e; | 1145 FX_FLOAT e; |
| 1147 FX_FLOAT f; | 1146 FX_FLOAT f; |
| 1148 FX_FLOAT g; | 1147 FX_FLOAT g; |
| 1149 FX_FLOAT h; | 1148 FX_FLOAT h; |
| 1150 FX_FLOAT i; | 1149 FX_FLOAT i; |
| 1151 }; | 1150 }; |
| 1152 | 1151 |
| 1153 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ | 1152 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ |
| OLD | NEW |