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 XFA_SRC_FEE_SRC_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_ | 7 #ifndef XFA_SRC_FEE_SRC_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_ |
8 #define XFA_SRC_FEE_SRC_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_ | 8 #define XFA_SRC_FEE_SRC_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_ |
9 | 9 |
| 10 #include <cstdint> |
| 11 |
| 12 #include "core/include/fxcrt/fx_string.h" |
| 13 #include "core/include/fxcrt/fx_system.h" |
| 14 #include "xfa/src/fee/include/fx_wordbreak.h" |
| 15 #include "xfa/src/fee/include/ifde_txtedtengine.h" |
| 16 #include "xfa/src/fee/src/fx_wordbreak/fx_wordbreak_impl.h" |
| 17 |
10 extern const FX_WORD gs_FX_WordBreak_Table[16]; | 18 extern const FX_WORD gs_FX_WordBreak_Table[16]; |
11 extern const uint8_t gs_FX_WordBreak_CodePointProperties[(0xFFFF - 1) / 2 + 1]; | 19 extern const uint8_t gs_FX_WordBreak_CodePointProperties[(0xFFFF - 1) / 2 + 1]; |
12 enum FX_WordBreakProp { | 20 enum FX_WordBreakProp { |
13 FX_WordBreakProp_None = 0, | 21 FX_WordBreakProp_None = 0, |
14 FX_WordBreakProp_CR, | 22 FX_WordBreakProp_CR, |
15 FX_WordBreakProp_LF, | 23 FX_WordBreakProp_LF, |
16 FX_WordBreakProp_NewLine, | 24 FX_WordBreakProp_NewLine, |
17 FX_WordBreakProp_Extend, | 25 FX_WordBreakProp_Extend, |
18 FX_WordBreakProp_Format, | 26 FX_WordBreakProp_Format, |
19 FX_WordBreakProp_KataKana, | 27 FX_WordBreakProp_KataKana, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 FX_BOOL FindNextBreakPos(IFX_CharIter* pIter, | 69 FX_BOOL FindNextBreakPos(IFX_CharIter* pIter, |
62 FX_BOOL bPrev, | 70 FX_BOOL bPrev, |
63 FX_BOOL bFromNext = TRUE); | 71 FX_BOOL bFromNext = TRUE); |
64 | 72 |
65 private: | 73 private: |
66 IFX_CharIter* m_pPreIter; | 74 IFX_CharIter* m_pPreIter; |
67 IFX_CharIter* m_pCurIter; | 75 IFX_CharIter* m_pCurIter; |
68 }; | 76 }; |
69 | 77 |
70 #endif // XFA_SRC_FEE_SRC_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_ | 78 #endif // XFA_SRC_FEE_SRC_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_ |
OLD | NEW |