chromium/third_party/pdfium/core/fxcrt/fx_unicode.h

// Copyright 2014 The PDFium Authors
// 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_FXCRT_FX_UNICODE_H_
#define CORE_FXCRT_FX_UNICODE_H_

#include <stdint.h>

// NOTE: Order matters, less-than/greater-than comparisons are used.
enum class FX_BIDICLASS : uint8_t {};

#ifdef PDF_ENABLE_XFA
// As defined in http://www.unicode.org/reports/tr14
enum class FX_BREAKPROPERTY : uint8_t {};

enum class FX_CHARTYPE : uint8_t {};
#endif  // PDF_ENABLE_XFA

namespace pdfium {
namespace unicode {

constexpr wchar_t kRightSingleQuotationMark =;
constexpr wchar_t kLineSeparator =;
constexpr wchar_t kParagraphSeparator =;
constexpr wchar_t kBoxDrawingsLightVerical =;
constexpr wchar_t kZeroWidthNoBreakSpace =;

wchar_t GetMirrorChar(wchar_t wch);
FX_BIDICLASS GetBidiClass(wchar_t wch);

#ifdef PDF_ENABLE_XFA
FX_CHARTYPE GetCharType(wchar_t wch);

// Analagous to ULineBreak in icu's uchar.h, but permuted order, and a
// subset lacking some more recent additions.
FX_BREAKPROPERTY GetBreakProperty(wchar_t wch);
#endif  // PDF_ENABLE_XFA

}  // namespace unicode
}  // namespace pdfium

#endif  // CORE_FXCRT_FX_UNICODE_H_