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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 if (iStart < 0) { | 364 if (iStart < 0) { |
365 return -1; | 365 return -1; |
366 } | 366 } |
367 for (; iStart < (int)m_nSize; iStart++) | 367 for (; iStart < (int)m_nSize; iStart++) |
368 if (((TYPE*)m_pData)[iStart] == data) { | 368 if (((TYPE*)m_pData)[iStart] == data) { |
369 return iStart; | 369 return iStart; |
370 } | 370 } |
371 return -1; | 371 return -1; |
372 } | 372 } |
373 }; | 373 }; |
374 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; | 374 |
375 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray; | 375 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray; |
376 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray; | 376 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray; |
377 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; | 377 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; |
378 typedef CFX_ArrayTemplate<FX_FILESIZE> CFX_FileSizeArray; | 378 typedef CFX_ArrayTemplate<FX_FILESIZE> CFX_FileSizeArray; |
379 | 379 |
380 template <class ObjectClass> | 380 template <class ObjectClass> |
381 class CFX_ObjectArray : public CFX_BasicArray { | 381 class CFX_ObjectArray : public CFX_BasicArray { |
382 public: | 382 public: |
383 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {} | 383 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {} |
384 | 384 |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 FX_FLOAT c; | 973 FX_FLOAT c; |
974 FX_FLOAT d; | 974 FX_FLOAT d; |
975 FX_FLOAT e; | 975 FX_FLOAT e; |
976 FX_FLOAT f; | 976 FX_FLOAT f; |
977 FX_FLOAT g; | 977 FX_FLOAT g; |
978 FX_FLOAT h; | 978 FX_FLOAT h; |
979 FX_FLOAT i; | 979 FX_FLOAT i; |
980 }; | 980 }; |
981 | 981 |
982 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 982 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
OLD | NEW |