OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFDOC_CPVT_WORDPLACE_H_ | 7 #ifndef CORE_FPDFDOC_CPVT_WORDPLACE_H_ |
8 #define CORE_FPDFDOC_CPVT_WORDPLACE_H_ | 8 #define CORE_FPDFDOC_CPVT_WORDPLACE_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/fx_system.h" |
11 | 11 |
12 struct CPVT_WordPlace { | 12 struct CPVT_WordPlace { |
13 CPVT_WordPlace() : nSecIndex(-1), nLineIndex(-1), nWordIndex(-1) {} | 13 CPVT_WordPlace() : nSecIndex(-1), nLineIndex(-1), nWordIndex(-1) {} |
14 | 14 |
15 CPVT_WordPlace(int32_t other_nSecIndex, | 15 CPVT_WordPlace(int32_t other_nSecIndex, |
16 int32_t other_nLineIndex, | 16 int32_t other_nLineIndex, |
17 int32_t other_nWordIndex) { | 17 int32_t other_nWordIndex) { |
18 nSecIndex = other_nSecIndex; | 18 nSecIndex = other_nSecIndex; |
19 nLineIndex = other_nLineIndex; | 19 nLineIndex = other_nLineIndex; |
20 nWordIndex = other_nWordIndex; | 20 nWordIndex = other_nWordIndex; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return -1; | 64 return -1; |
65 return 0; | 65 return 0; |
66 } | 66 } |
67 | 67 |
68 int32_t nSecIndex; | 68 int32_t nSecIndex; |
69 int32_t nLineIndex; | 69 int32_t nLineIndex; |
70 int32_t nWordIndex; | 70 int32_t nWordIndex; |
71 }; | 71 }; |
72 | 72 |
73 #endif // CORE_FPDFDOC_CPVT_WORDPLACE_H_ | 73 #endif // CORE_FPDFDOC_CPVT_WORDPLACE_H_ |
OLD | NEW |