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_SRC_FXCRT_FX_ARABIC_H_ | 7 #ifndef CORE_SRC_FXCRT_FX_ARABIC_H_ |
8 #define CORE_SRC_FXCRT_FX_ARABIC_H_ | 8 #define CORE_SRC_FXCRT_FX_ARABIC_H_ |
9 | 9 |
10 #include "../../include/fxcrt/fx_arb.h" | 10 #include "../../include/fxcrt/fx_arb.h" |
11 | 11 |
12 class CFX_BidiChar final : public IFX_BidiChar | 12 class CFX_BidiChar final : public IFX_BidiChar |
13 { | 13 { |
14 public: | 14 public: |
15 CFX_BidiChar(); | 15 CFX_BidiChar(); |
16 ~CFX_BidiChar() override {} | 16 ~CFX_BidiChar() override; |
17 | |
18 void SetPolicy(FX_BOOL bSeparateNeutral = TRUE) override; | |
19 FX_BOOL AppendChar(FX_WCHAR wch) override; | |
20 FX_BOOL EndChar() override; | |
21 int32_t GetBidiInfo(int32_t &iStart, int32_t &iCount) override; | |
22 void Reset() override; | |
23 | 17 |
24 private: | 18 private: |
25 FX_BOOL» m_bSeparateNeutral; | 19 // IFX_BidiChar |
Tom Sepez
2015/06/19 20:30:32
nit: maybe colon after IFX_BidiChar:
| |
26 int32_t» m_iCurStart; | 20 bool AppendChar(FX_WCHAR wch) override; |
27 int32_t» m_iCurCount; | 21 bool EndChar() override; |
28 int32_t» m_iCurBidi; | 22 Direction GetBidiInfo(int32_t* iStart, int32_t* iCount) override; |
29 int32_t» m_iLastBidi; | 23 |
30 int32_t» m_iLastStart; | 24 void SaveCurrentStateToLastState(); |
31 int32_t» m_iLastCount; | 25 |
26 // Position of the current segment. | |
27 int32_t m_iCurStart; | |
28 | |
29 // Number of characters in the current segment. | |
30 int32_t m_iCurCount; | |
31 | |
32 // Direction of the current segment. | |
33 Direction m_CurBidi; | |
34 | |
35 // Number of characters in the last segment. | |
36 int32_t m_iLastStart; | |
37 | |
38 // Number of characters in the last segment. | |
39 int32_t m_iLastCount; | |
40 | |
41 // Direction of the last segment. | |
42 Direction m_LastBidi; | |
32 }; | 43 }; |
33 | 44 |
34 #endif // CORE_SRC_FXCRT_FX_ARABIC_H_ | 45 #endif // CORE_SRC_FXCRT_FX_ARABIC_H_ |
OLD | NEW |