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" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 const CFX_Int32Array& classes, | 200 const CFX_Int32Array& classes, |
201 CFX_Int32Array& levels); | 201 CFX_Int32Array& levels); |
202 int32_t FX_BidiReorderLevel(int32_t iBaseLevel, | 202 int32_t FX_BidiReorderLevel(int32_t iBaseLevel, |
203 CFX_WideString& wsText, | 203 CFX_WideString& wsText, |
204 const CFX_Int32Array& levels, | 204 const CFX_Int32Array& levels, |
205 int32_t iStart, | 205 int32_t iStart, |
206 FX_BOOL bReverse = FALSE); | 206 FX_BOOL bReverse = FALSE); |
207 void FX_BidiReorder(int32_t iBaseLevel, | 207 void FX_BidiReorder(int32_t iBaseLevel, |
208 CFX_WideString& wsText, | 208 CFX_WideString& wsText, |
209 const CFX_Int32Array& levels); | 209 const CFX_Int32Array& levels); |
210 class CFX_BidiChar final : public IFX_BidiChar { | |
211 public: | |
212 CFX_BidiChar(); | |
213 ~CFX_BidiChar() override {} | |
214 | |
215 void SetPolicy(FX_BOOL bSeparateNeutral = TRUE) override; | |
216 FX_BOOL AppendChar(FX_WCHAR wch) override; | |
217 FX_BOOL EndChar() override; | |
218 int32_t GetBidiInfo(int32_t& iStart, int32_t& iCount) override; | |
219 void Reset() override; | |
220 | |
221 private: | |
222 FX_BOOL m_bSeparateNeutral; | |
223 int32_t m_iCurStart; | |
224 int32_t m_iCurCount; | |
225 int32_t m_iCurBidi; | |
226 int32_t m_iLastBidi; | |
227 int32_t m_iLastStart; | |
228 int32_t m_iLastCount; | |
229 }; | |
230 | 210 |
231 #endif // CORE_SRC_FXCRT_FX_ARABIC_H_ | 211 #endif // CORE_SRC_FXCRT_FX_ARABIC_H_ |
OLD | NEW |