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

// 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

#include "core/fxcrt/fx_unicode.h"

#include <stddef.h>

#include <iterator>

#include "core/fxcrt/check.h"
#include "core/fxcrt/check_op.h"
#include "core/fxcrt/compiler_specific.h"

namespace {

// Format of uint16_t values in kTextLayoutCodeProperties[].
constexpr uint16_t kBidiClassBitPos =;
constexpr uint16_t kBidiClassBitCount =;
constexpr uint16_t kBidiClassBitMask =;

constexpr uint16_t kMirrorBitPos =;
constexpr uint16_t kMirrorBitCount =;
constexpr uint16_t kMirrorMax =;

#undef CHARPROP____
#define CHARPROP____
constexpr uint16_t kTextLayoutCodeProperties[] =;
#undef CHARPROP____

static_assert;

uint16_t GetUnicodeProperties(wchar_t wch) {}

#ifdef PDF_ENABLE_XFA
// Format of uint16_t values in kExtendedTextLayoutCodeProperties[].
constexpr uint16_t kBreakTypeBitPos =;
constexpr uint16_t kBreakTypeBitCount =;
constexpr uint16_t kBreakTypeBitMask =;

constexpr uint16_t kCharTypeBitPos =;
constexpr uint16_t kCharTypeBitCount =;
constexpr uint16_t kCharTypeBitMask =;

#undef CHARPROP____
#define CHARPROP____
constexpr uint16_t kExtendedTextLayoutCodeProperties[] =;
#undef CHARPROP____

static_assert;

uint16_t GetExtendedUnicodeProperties(wchar_t wch) {}

#endif  // PDF_ENABLE_XFA

constexpr uint16_t kFXTextLayoutBidiMirror[] =;

// Check that the mirror indicies in the fx_ucddata.inc table are in bounds.
#undef CHARPROP____
#define CHARPROP____
#include "core/fxcrt/fx_ucddata.inc"  // NOLINT(build/include)
#undef CHARPROP____

}  // namespace

namespace pdfium::unicode {

wchar_t GetMirrorChar(wchar_t wch) {}

FX_BIDICLASS GetBidiClass(wchar_t wch) {}

#ifdef PDF_ENABLE_XFA
FX_CHARTYPE GetCharType(wchar_t wch) {}

FX_BREAKPROPERTY GetBreakProperty(wchar_t wch) {}
#endif  // PDF_ENABLE_XFA

}  // namespace pdfium::unicode