From 2ae87d2e8ddff79d0e96aad3db97e090db21fb99 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 17 Aug 2015 18:00:48 -0700 Subject: Clean up IFX_BidiChar - Replace IFX_BidiChar with just CFX_BidiChar - Document implementation - Change out parameters to pointers - Remove dead code - Add an enum for bidi directions - Move several externs to a header - Add unit tests R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1197643002 . --- core/src/fxcrt/fx_arabic.h | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 core/src/fxcrt/fx_arabic.h (limited to 'core/src/fxcrt/fx_arabic.h') diff --git a/core/src/fxcrt/fx_arabic.h b/core/src/fxcrt/fx_arabic.h deleted file mode 100644 index 0230d40579..0000000000 --- a/core/src/fxcrt/fx_arabic.h +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2014 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef CORE_SRC_FXCRT_FX_ARABIC_H_ -#define CORE_SRC_FXCRT_FX_ARABIC_H_ - -#include "../../include/fxcrt/fx_arb.h" - -class CFX_BidiChar final : public IFX_BidiChar { - public: - CFX_BidiChar(); - ~CFX_BidiChar() override {} - - void SetPolicy(FX_BOOL bSeparateNeutral = TRUE) override; - FX_BOOL AppendChar(FX_WCHAR wch) override; - FX_BOOL EndChar() override; - int32_t GetBidiInfo(int32_t& iStart, int32_t& iCount) override; - void Reset() override; - - private: - FX_BOOL m_bSeparateNeutral; - int32_t m_iCurStart; - int32_t m_iCurCount; - int32_t m_iCurBidi; - int32_t m_iLastBidi; - int32_t m_iLastStart; - int32_t m_iLastCount; -}; - -#endif // CORE_SRC_FXCRT_FX_ARABIC_H_ -- cgit v1.2.3