Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1131)

Side by Side Diff: core/include/fxcrt/fx_ucd.h

Issue 1423103002: XFA: Manual merge of Clean up IFX_BidiChar (Closed) Base URL: https://pdfium.googlesource.com/pdfium@xfa
Patch Set: address comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/include/fxcrt/fx_bidi.h ('k') | core/src/fpdftext/fpdf_text.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_INCLUDE_FXCRT_FX_UCD_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_UCD_H_
8 #define CORE_INCLUDE_FXCRT_FX_UCD_H_ 8 #define CORE_INCLUDE_FXCRT_FX_UCD_H_
9 9
10 #include "fx_basic.h" 10 #include "fx_basic.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 FX_CHARTYPE_Combination = (4 << FX_CHARTYPEBITS), 94 FX_CHARTYPE_Combination = (4 << FX_CHARTYPEBITS),
95 FX_CHARTYPE_Numeric = (5 << FX_CHARTYPEBITS), 95 FX_CHARTYPE_Numeric = (5 << FX_CHARTYPEBITS),
96 FX_CHARTYPE_Normal = (6 << FX_CHARTYPEBITS), 96 FX_CHARTYPE_Normal = (6 << FX_CHARTYPEBITS),
97 FX_CHARTYPE_ArabicAlef = (7 << FX_CHARTYPEBITS), 97 FX_CHARTYPE_ArabicAlef = (7 << FX_CHARTYPEBITS),
98 FX_CHARTYPE_ArabicSpecial = (8 << FX_CHARTYPEBITS), 98 FX_CHARTYPE_ArabicSpecial = (8 << FX_CHARTYPEBITS),
99 FX_CHARTYPE_ArabicDistortion = (9 << FX_CHARTYPEBITS), 99 FX_CHARTYPE_ArabicDistortion = (9 << FX_CHARTYPEBITS),
100 FX_CHARTYPE_ArabicNormal = (10 << FX_CHARTYPEBITS), 100 FX_CHARTYPE_ArabicNormal = (10 << FX_CHARTYPEBITS),
101 FX_CHARTYPE_ArabicForm = (11 << FX_CHARTYPEBITS), 101 FX_CHARTYPE_ArabicForm = (11 << FX_CHARTYPEBITS),
102 FX_CHARTYPE_Arabic = (12 << FX_CHARTYPEBITS), 102 FX_CHARTYPE_Arabic = (12 << FX_CHARTYPEBITS),
103 }; 103 };
104 typedef struct _FX_CHARPROPERTIES { 104
105 union FX_CHARPROPERTIES_UNION {
106 struct FX_CHARPROPERTIES_BIT {
107 FX_DWORD dwBreakType : 6;
108 FX_DWORD dwBidiClass : 5;
109 FX_DWORD dwCharType : 4;
110 FX_DWORD dwRotation : 1;
111 FX_DWORD dwCJKSpecial : 1;
112 FX_DWORD dwVertIndex : 6;
113 FX_DWORD dwBidiIndex : 9;
114 };
115 FX_DWORD dwCharProps;
116 };
117 } FX_CHARPROPERTIES;
118 FX_DWORD FX_GetUnicodeProperties(FX_WCHAR wch); 105 FX_DWORD FX_GetUnicodeProperties(FX_WCHAR wch);
119 FX_BOOL FX_IsCtrlCode(FX_WCHAR ch); 106 FX_BOOL FX_IsCtrlCode(FX_WCHAR ch);
120 FX_BOOL FX_IsRotationCode(FX_WCHAR ch);
121 FX_BOOL FX_IsCombinationChar(FX_WCHAR wch);
122 FX_BOOL FX_IsBidiChar(FX_WCHAR wch);
123 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch, FX_BOOL bRTL, FX_BOOL bVertical); 107 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch, FX_BOOL bRTL, FX_BOOL bVertical);
124 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch, 108 FX_WCHAR FX_GetMirrorChar(FX_WCHAR wch,
125 FX_DWORD dwProps, 109 FX_DWORD dwProps,
126 FX_BOOL bRTL, 110 FX_BOOL bRTL,
127 FX_BOOL bVertical); 111 FX_BOOL bVertical);
128 class CFX_Char { 112 class CFX_Char {
129 public: 113 public:
130 CFX_Char() 114 CFX_Char()
131 : m_wCharCode(0), 115 : m_wCharCode(0),
132 m_nBreakType(0), 116 m_nBreakType(0),
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 int16_t m_iBidiLevel; 178 int16_t m_iBidiLevel;
195 int16_t m_iBidiPos; 179 int16_t m_iBidiPos;
196 int16_t m_iBidiOrder; 180 int16_t m_iBidiOrder;
197 FX_DWORD m_dwLayoutStyles; 181 FX_DWORD m_dwLayoutStyles;
198 FX_DWORD m_dwIdentity; 182 FX_DWORD m_dwIdentity;
199 IFX_Unknown* m_pUserData; 183 IFX_Unknown* m_pUserData;
200 }; 184 };
201 typedef CFX_ArrayTemplate<CFX_RTFChar> CFX_RTFCharArray; 185 typedef CFX_ArrayTemplate<CFX_RTFChar> CFX_RTFCharArray;
202 186
203 #endif // CORE_INCLUDE_FXCRT_FX_UCD_H_ 187 #endif // CORE_INCLUDE_FXCRT_FX_UCD_H_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_bidi.h ('k') | core/src/fpdftext/fpdf_text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698