| 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_FXCRT_FX_ARB_H_ | 7 #ifndef CORE_FXCRT_FX_ARB_H_ |
| 8 #define CORE_FXCRT_FX_ARB_H_ | 8 #define CORE_FXCRT_FX_ARB_H_ |
| 9 | 9 |
| 10 #include <vector> |
| 11 |
| 10 #include "core/fxcrt/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
| 11 #include "core/fxcrt/fx_ucd.h" | 13 #include "core/fxcrt/fx_ucd.h" |
| 12 | 14 |
| 13 struct FX_ARBFORMTABLE { | 15 struct FX_ARBFORMTABLE { |
| 14 uint16_t wIsolated; | 16 uint16_t wIsolated; |
| 15 uint16_t wFinal; | 17 uint16_t wFinal; |
| 16 uint16_t wInitial; | 18 uint16_t wInitial; |
| 17 uint16_t wMedial; | 19 uint16_t wMedial; |
| 18 }; | 20 }; |
| 19 | 21 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 32 FX_WCHAR FX_GetArabicFromShaddaTable(FX_WCHAR shadda); | 34 FX_WCHAR FX_GetArabicFromShaddaTable(FX_WCHAR shadda); |
| 33 | 35 |
| 34 enum FX_ARBPOSITION { | 36 enum FX_ARBPOSITION { |
| 35 FX_ARBPOSITION_Isolated = 0, | 37 FX_ARBPOSITION_Isolated = 0, |
| 36 FX_ARBPOSITION_Final, | 38 FX_ARBPOSITION_Final, |
| 37 FX_ARBPOSITION_Initial, | 39 FX_ARBPOSITION_Initial, |
| 38 FX_ARBPOSITION_Medial, | 40 FX_ARBPOSITION_Medial, |
| 39 }; | 41 }; |
| 40 | 42 |
| 41 void FX_BidiLine(CFX_WideString& wsText, int32_t iBaseLevel = 0); | 43 void FX_BidiLine(CFX_WideString& wsText, int32_t iBaseLevel = 0); |
| 42 void FX_BidiLine(CFX_TxtCharArray& chars, | 44 void FX_BidiLine(std::vector<CFX_TxtChar>& chars, |
| 43 int32_t iCount, | 45 int32_t iCount, |
| 44 int32_t iBaseLevel = 0); | 46 int32_t iBaseLevel = 0); |
| 45 void FX_BidiLine(CFX_RTFCharArray& chars, | 47 void FX_BidiLine(std::vector<CFX_RTFChar>& chars, |
| 46 int32_t iCount, | 48 int32_t iCount, |
| 47 int32_t iBaseLevel = 0); | 49 int32_t iBaseLevel = 0); |
| 48 | 50 |
| 49 #endif // CORE_FXCRT_FX_ARB_H_ | 51 #endif // CORE_FXCRT_FX_ARB_H_ |
| OLD | NEW |