blob: 4363df0086a1c1d0e89c20ee976458a064b8de11 [file] [log] [blame]
// 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 XFA_FGAS_LAYOUT_FGAS_ARABIC_H_
#define XFA_FGAS_LAYOUT_FGAS_ARABIC_H_
#include "core/fxcrt/fx_system.h"
#include "third_party/base/optional.h"
class CFGAS_Char;
namespace pdfium {
namespace arabic {
constexpr wchar_t kArabicLetterLam = 0x0644;
constexpr wchar_t kArabicLetterHeh = 0x0647;
constexpr wchar_t kArabicShadda = 0x0651;
constexpr wchar_t kArabicLetterSuperscriptAlef = 0x0670;
wchar_t GetFormChar(wchar_t wch, wchar_t prev, wchar_t next);
wchar_t GetFormChar(const CFGAS_Char* cur,
const CFGAS_Char* prev,
const CFGAS_Char* next);
Optional<wchar_t> GetArabicFromShaddaTable(wchar_t shadda);
} // namespace arabic
} // namespace pdfium
#endif // XFA_FGAS_LAYOUT_FGAS_ARABIC_H_