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 #include "../../include/fxcrt/fx_bidi.h" | 7 #include "core/include/fxcrt/fx_bidi.h" |
8 #include "../../include/fxcrt/fx_ucd.h" | 8 #include "core/include/fxcrt/fx_ucd.h" |
9 | 9 |
10 CFX_BidiChar::CFX_BidiChar() | 10 CFX_BidiChar::CFX_BidiChar() |
11 : m_iCurStart(0), | 11 : m_iCurStart(0), |
12 m_iCurCount(0), | 12 m_iCurCount(0), |
13 m_CurBidi(NEUTRAL), | 13 m_CurBidi(NEUTRAL), |
14 m_iLastStart(0), | 14 m_iLastStart(0), |
15 m_iLastCount(0), | 15 m_iLastCount(0), |
16 m_LastBidi(NEUTRAL) { | 16 m_LastBidi(NEUTRAL) { |
17 } | 17 } |
18 | 18 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 *iCount = m_iLastCount; | 57 *iCount = m_iLastCount; |
58 return m_LastBidi; | 58 return m_LastBidi; |
59 } | 59 } |
60 | 60 |
61 void CFX_BidiChar::SaveCurrentStateToLastState() { | 61 void CFX_BidiChar::SaveCurrentStateToLastState() { |
62 m_LastBidi = m_CurBidi; | 62 m_LastBidi = m_CurBidi; |
63 m_iLastStart = m_iCurStart; | 63 m_iLastStart = m_iCurStart; |
64 m_iCurStart = m_iCurCount; | 64 m_iCurStart = m_iCurCount; |
65 m_iLastCount = m_iCurCount - m_iLastStart; | 65 m_iLastCount = m_iCurCount - m_iLastStart; |
66 } | 66 } |
OLD | NEW |