1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef CORE_SRC_FXCRT_FX_ARABIC_H_
8 #define CORE_SRC_FXCRT_FX_ARABIC_H_
9 
10 class CFX_BidiChar FX_FINAL : public IFX_BidiChar
11 {
12 public:
13     CFX_BidiChar();
Release()14     virtual void		Release() FX_OVERRIDE
15     {
16         delete this;
17     }
18     virtual void		SetPolicy(FX_BOOL bSeparateNeutral = TRUE) FX_OVERRIDE
19     {
20         m_bSeparateNeutral = bSeparateNeutral;
21     }
22     virtual FX_BOOL		AppendChar(FX_WCHAR wch) FX_OVERRIDE;
23     virtual FX_BOOL		EndChar() FX_OVERRIDE;
24     virtual FX_INT32	GetBidiInfo(FX_INT32 &iStart, FX_INT32 &iCount) FX_OVERRIDE;
25     virtual void		Reset() FX_OVERRIDE;
26 
27 private:
~CFX_BidiChar()28     ~CFX_BidiChar() { }
29     FX_BOOL		m_bSeparateNeutral;
30     FX_INT32	m_iCurStart;
31     FX_INT32	m_iCurCount;
32     FX_INT32	m_iCurBidi;
33     FX_INT32	m_iLastBidi;
34     FX_INT32	m_iLastStart;
35     FX_INT32	m_iLastCount;
36 };
37 
38 #endif  // CORE_SRC_FXCRT_FX_ARABIC_H_
39