diff options
author | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-08-04 13:00:21 -0700 |
commit | 9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f (patch) | |
tree | c97037f398d714665aefccb6eb54d0969ad7030c /core/include/fxcrt/fx_arb.h | |
parent | 780cee82236d1b3b0f9b01a22424e4b8ec9a6f12 (diff) | |
download | pdfium-9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f.tar.xz |
XFA: clang-format all pdfium code.
No behavior change.
Generated by:
find . -name '*.cpp' -o -name '*.h' | \
grep -E -v 'third_party|thirdparties|lpng_v163|tiff_v403' | \
xargs ../../buildtools/mac/clang-format -i
Then manually merged https://codereview.chromium.org/1269223002/
See thread "tabs vs spaces" on pdfium@googlegroups.com for discussion.
BUG=none
Diffstat (limited to 'core/include/fxcrt/fx_arb.h')
-rw-r--r-- | core/include/fxcrt/fx_arb.h | 91 |
1 files changed, 48 insertions, 43 deletions
diff --git a/core/include/fxcrt/fx_arb.h b/core/include/fxcrt/fx_arb.h index 3886ac3aae..d3612db4e7 100644 --- a/core/include/fxcrt/fx_arb.h +++ b/core/include/fxcrt/fx_arb.h @@ -13,26 +13,25 @@ class IFX_ArabicChar; class IFX_BidiChar; #ifdef __cplusplus -extern "C" -{ +extern "C" { #endif typedef struct _FX_ARBFORMTABLE { - FX_WCHAR wIsolated; - FX_WCHAR wFinal; - FX_WCHAR wInitial; - FX_WCHAR wMedial; -} FX_ARBFORMTABLE, * FX_LPARBFORMTABLE; -typedef FX_ARBFORMTABLE const * FX_LPCARBFORMTABLE; + FX_WCHAR wIsolated; + FX_WCHAR wFinal; + FX_WCHAR wInitial; + FX_WCHAR wMedial; +} FX_ARBFORMTABLE, *FX_LPARBFORMTABLE; +typedef FX_ARBFORMTABLE const* FX_LPCARBFORMTABLE; typedef struct _FX_ARAALEF { - FX_WCHAR wAlef; - FX_WCHAR wIsolated; -} FX_ARAALEF, * FX_LPARAALEF; -typedef FX_ARAALEF const * FX_LPCARAALEF; + FX_WCHAR wAlef; + FX_WCHAR wIsolated; +} FX_ARAALEF, *FX_LPARAALEF; +typedef FX_ARAALEF const* FX_LPCARAALEF; typedef struct _FX_ARASHADDA { - FX_WCHAR wShadda; - FX_WCHAR wIsolated; -} FX_ARASHADDA, * FX_LPARASHADDA; -typedef FX_ARASHADDA const * FX_LPCARASHADDA; + FX_WCHAR wShadda; + FX_WCHAR wIsolated; +} FX_ARASHADDA, *FX_LPARASHADDA; +typedef FX_ARASHADDA const* FX_LPCARASHADDA; FX_LPCARBFORMTABLE FX_GetArabicFormTable(FX_WCHAR unicode); FX_WCHAR FX_GetArabicFromAlefTable(FX_WCHAR alef); FX_WCHAR FX_GetArabicFromShaddaTable(FX_WCHAR shadda); @@ -40,36 +39,42 @@ FX_WCHAR FX_GetArabicFromShaddaTable(FX_WCHAR shadda); }; #endif enum FX_ARBPOSITION { - FX_ARBPOSITION_Isolated = 0, - FX_ARBPOSITION_Final, - FX_ARBPOSITION_Initial, - FX_ARBPOSITION_Medial, + FX_ARBPOSITION_Isolated = 0, + FX_ARBPOSITION_Final, + FX_ARBPOSITION_Initial, + FX_ARBPOSITION_Medial, }; -class IFX_ArabicChar -{ -public: - static IFX_ArabicChar* Create(); - virtual ~IFX_ArabicChar() {} - virtual void Release() = 0; - virtual FX_BOOL IsArabicChar(FX_WCHAR wch) const = 0; - virtual FX_BOOL IsArabicFormChar(FX_WCHAR wch) const = 0; - virtual FX_WCHAR GetFormChar(FX_WCHAR wch, FX_WCHAR prev = 0, FX_WCHAR next = 0) const = 0; - virtual FX_WCHAR GetFormChar(const CFX_Char *cur, const CFX_Char *prev, const CFX_Char *next) const = 0; +class IFX_ArabicChar { + public: + static IFX_ArabicChar* Create(); + virtual ~IFX_ArabicChar() {} + virtual void Release() = 0; + virtual FX_BOOL IsArabicChar(FX_WCHAR wch) const = 0; + virtual FX_BOOL IsArabicFormChar(FX_WCHAR wch) const = 0; + virtual FX_WCHAR GetFormChar(FX_WCHAR wch, + FX_WCHAR prev = 0, + FX_WCHAR next = 0) const = 0; + virtual FX_WCHAR GetFormChar(const CFX_Char* cur, + const CFX_Char* prev, + const CFX_Char* next) const = 0; }; -void FX_BidiLine(CFX_WideString &wsText, int32_t iBaseLevel = 0); -void FX_BidiLine(CFX_TxtCharArray &chars, int32_t iCount, int32_t iBaseLevel = 0); -void FX_BidiLine(CFX_RTFCharArray &chars, int32_t iCount, int32_t iBaseLevel = 0); -class IFX_BidiChar -{ -public: - static IFX_BidiChar* Create(); - virtual ~IFX_BidiChar() {} +void FX_BidiLine(CFX_WideString& wsText, int32_t iBaseLevel = 0); +void FX_BidiLine(CFX_TxtCharArray& chars, + int32_t iCount, + int32_t iBaseLevel = 0); +void FX_BidiLine(CFX_RTFCharArray& chars, + int32_t iCount, + int32_t iBaseLevel = 0); +class IFX_BidiChar { + public: + static IFX_BidiChar* Create(); + virtual ~IFX_BidiChar() {} - virtual void SetPolicy(FX_BOOL bSeparateNeutral = TRUE) = 0; - virtual FX_BOOL AppendChar(FX_WCHAR wch) = 0; - virtual FX_BOOL EndChar() = 0; - virtual int32_t GetBidiInfo(int32_t &iStart, int32_t &iCount) = 0; - virtual void Reset() = 0; + virtual void SetPolicy(FX_BOOL bSeparateNeutral = TRUE) = 0; + virtual FX_BOOL AppendChar(FX_WCHAR wch) = 0; + virtual FX_BOOL EndChar() = 0; + virtual int32_t GetBidiInfo(int32_t& iStart, int32_t& iCount) = 0; + virtual void Reset() = 0; }; #endif // CORE_INCLUDE_FXCRT_FX_ARB_H_ |