xref: /aosp_15_r20/external/pdfium/xfa/fgas/layout/fgas_arabic.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2014 The PDFium Authors
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 XFA_FGAS_LAYOUT_FGAS_ARABIC_H_
8 #define XFA_FGAS_LAYOUT_FGAS_ARABIC_H_
9 
10 #include "third_party/abseil-cpp/absl/types/optional.h"
11 
12 class CFGAS_Char;
13 
14 namespace pdfium {
15 namespace arabic {
16 
17 constexpr wchar_t kArabicLetterLam = 0x0644;
18 constexpr wchar_t kArabicLetterHeh = 0x0647;
19 constexpr wchar_t kArabicShadda = 0x0651;
20 constexpr wchar_t kArabicLetterSuperscriptAlef = 0x0670;
21 
22 wchar_t GetFormChar(wchar_t wch, wchar_t prev, wchar_t next);
23 wchar_t GetFormChar(const CFGAS_Char* cur,
24                     const CFGAS_Char* prev,
25                     const CFGAS_Char* next);
26 absl::optional<wchar_t> GetArabicFromShaddaTable(wchar_t shadda);
27 
28 }  // namespace arabic
29 }  // namespace pdfium
30 
31 #endif  // XFA_FGAS_LAYOUT_FGAS_ARABIC_H_
32