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 _FX_UNICODE_ | 7 #ifndef _FX_UNICODE_ |
8 #define _FX_UNICODE_ | 8 #define _FX_UNICODE_ |
9 enum FX_CHARBREAKPROP { | 9 enum FX_CHARBREAKPROP { |
10 FX_CBP_OP = 0, | 10 FX_CBP_OP = 0, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 FX_CHARTYPE_Combination = (4 << FX_CHARTYPEBITS), | 81 FX_CHARTYPE_Combination = (4 << FX_CHARTYPEBITS), |
82 FX_CHARTYPE_Numeric = (5 << FX_CHARTYPEBITS), | 82 FX_CHARTYPE_Numeric = (5 << FX_CHARTYPEBITS), |
83 FX_CHARTYPE_Normal = (6 << FX_CHARTYPEBITS), | 83 FX_CHARTYPE_Normal = (6 << FX_CHARTYPEBITS), |
84 FX_CHARTYPE_ArabicAlef = (7 << FX_CHARTYPEBITS), | 84 FX_CHARTYPE_ArabicAlef = (7 << FX_CHARTYPEBITS), |
85 FX_CHARTYPE_ArabicSpecial = (8 << FX_CHARTYPEBITS), | 85 FX_CHARTYPE_ArabicSpecial = (8 << FX_CHARTYPEBITS), |
86 FX_CHARTYPE_ArabicDistortion = (9 << FX_CHARTYPEBITS), | 86 FX_CHARTYPE_ArabicDistortion = (9 << FX_CHARTYPEBITS), |
87 FX_CHARTYPE_ArabicNormal = (10 << FX_CHARTYPEBITS), | 87 FX_CHARTYPE_ArabicNormal = (10 << FX_CHARTYPEBITS), |
88 FX_CHARTYPE_ArabicForm = (11 << FX_CHARTYPEBITS), | 88 FX_CHARTYPE_ArabicForm = (11 << FX_CHARTYPEBITS), |
89 FX_CHARTYPE_Arabic = (12 << FX_CHARTYPEBITS), | 89 FX_CHARTYPE_Arabic = (12 << FX_CHARTYPEBITS), |
90 }; | 90 }; |
91 typedef struct _FX_CHARPROPERTIES { | |
Peter Kasting
2014/07/08 21:28:28
This doesn't seem to be used anywhere, so rather t
| |
92 union { | |
93 struct { | |
94 FX_DWORD dwBreakType : 6; | |
95 FX_DWORD dwBidiClass : 5; | |
96 FX_DWORD dwCharType : 4; | |
97 FX_DWORD dwRotation : 1; | |
98 FX_DWORD dwCJKSpecial : 1; | |
99 FX_DWORD dwVertIndex : 6; | |
100 FX_DWORD dwBidiIndex : 9; | |
101 }; | |
102 FX_DWORD dwCharProps; | |
103 }; | |
104 } FX_CHARPROPERTIES; | |
105 FX_DWORD FX_GetUnicodeProperties(FX_WCHAR wch); | 91 FX_DWORD FX_GetUnicodeProperties(FX_WCHAR wch); |
106 FX_BOOL FX_IsCtrlCode(FX_WCHAR ch); | 92 FX_BOOL FX_IsCtrlCode(FX_WCHAR ch); |
107 FX_BOOL FX_IsRotationCode(FX_WCHAR ch); | 93 FX_BOOL FX_IsRotationCode(FX_WCHAR ch); |
108 FX_BOOL FX_IsCombinationChar(FX_WCHAR wch); | 94 FX_BOOL FX_IsCombinationChar(FX_WCHAR wch); |
109 FX_BOOL FX_IsBidiChar(FX_WCHAR wch); | 95 FX_BOOL FX_IsBidiChar(FX_WCHAR wch); |
110 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch, FX_BOOL bRTL, FX_BOOL bVertical); | 96 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch, FX_BOOL bRTL, FX_BOOL bVertical); |
111 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch, FX_DWORD dwProps, FX_BOOL bRTL, FX_BOOL bVertical); | 97 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch, FX_DWORD dwProps, FX_BOOL bRTL, FX_BOOL bVertical); |
112 #endif | 98 #endif |
OLD | NEW |