Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qunicodetables.cpp File Reference

(f7fd1f55ccb1ae277a8daaaa6a1ee3e64bd4872b)

#include "qunicodetables_p.h"
Include dependency graph for qunicodetables.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QUnicodeTables::NormalizationCorrection
struct  QUnicodeTables::IdnaMapEntry

Namespaces

namespace  QUnicodeTables

Macros

#define GET_DECOMPOSITION_INDEX(ucs4)
#define GET_LIGATURE_INDEX(ucs4)

Enumerations

enum  { QUnicodeTables::NumNormalizationCorrections = 6 , QUnicodeTables::NumNormalizationCorrections = 6 }
enum  { QUnicodeTables::NormalizationCorrectionsVersionMax = 7 , QUnicodeTables::NormalizationCorrectionsVersionMax = 7 }
enum  { QUnicodeTables::NumNormalizationCorrections = 6 , QUnicodeTables::NumNormalizationCorrections = 6 }
enum  { QUnicodeTables::NormalizationCorrectionsVersionMax = 7 , QUnicodeTables::NormalizationCorrectionsVersionMax = 7 }

Functions

static Q_DECL_CONST_FUNCTION Q_ALWAYS_INLINE const PropertiesQUnicodeTables::qGetProp (char32_t ucs4) noexcept
Q_DECL_CONST_FUNCTION Q_CORE_EXPORT const Properties *QT_FASTCALL QUnicodeTables::properties (char32_t ucs4) noexcept
Q_DECL_CONST_FUNCTION Q_CORE_EXPORT QSpan< const CaseConversion, NumCases > QT_FASTCALL QUnicodeTables::caseConversion (char32_t ucs4) noexcept
Q_CORE_EXPORT GraphemeBreakClass QT_FASTCALL QUnicodeTables::graphemeBreakClass (char32_t ucs4) noexcept
Q_CORE_EXPORT WordBreakClass QT_FASTCALL QUnicodeTables::wordBreakClass (char32_t ucs4) noexcept
Q_CORE_EXPORT SentenceBreakClass QT_FASTCALL QUnicodeTables::sentenceBreakClass (char32_t ucs4) noexcept
Q_CORE_EXPORT LineBreakClass QT_FASTCALL QUnicodeTables::lineBreakClass (char32_t ucs4) noexcept
Q_CORE_EXPORT IdnaStatus QT_FASTCALL QUnicodeTables::idnaStatus (char32_t ucs4) noexcept
Q_CORE_EXPORT EastAsianWidth QT_FASTCALL QUnicodeTables::eastAsianWidth (char32_t ucs4) noexcept
Q_CORE_EXPORT QStringView QT_FASTCALL QUnicodeTables::idnaMapping (char32_t usc4) noexcept

Variables

static constexpr char32_t QUnicodeTables::MaxSeparatorCodepoint = 0x3000
static constexpr unsigned short QUnicodeTables::uc_property_trie []
static constexpr Properties QUnicodeTables::uc_properties []
static constexpr unsigned short QUnicodeTables::specialCaseMap []
constexpr unsigned int QUnicodeTables::MaxSpecialCaseLength = 3
static constexpr unsigned short QUnicodeTables::uc_decomposition_trie []
static constexpr unsigned short QUnicodeTables::uc_decomposition_map []
static constexpr unsigned short QUnicodeTables::uc_ligature_trie []
static constexpr unsigned short QUnicodeTables::uc_ligature_map []
static constexpr NormalizationCorrection QUnicodeTables::uc_normalization_corrections []
static constexpr char16_t QUnicodeTables::idnaMappingData []
static constexpr IdnaMapEntry QUnicodeTables::idnaMap []

Macro Definition Documentation

◆ GET_DECOMPOSITION_INDEX

#define GET_DECOMPOSITION_INDEX ( ucs4)
Value:
(ucs4 < 0x3400 \
? (uc_decomposition_trie[uc_decomposition_trie[ucs4 >> 4] + (ucs4 & 0xf)]) \
: ucs4 < 0x30000 \
? uc_decomposition_trie[uc_decomposition_trie[((ucs4 - 0x3400) >> 8) + 0x340] + (ucs4 & 0xff)] \
: 0xffff)
static constexpr unsigned short uc_decomposition_trie[]

Definition at line 13279 of file qunicodetables.cpp.

◆ GET_LIGATURE_INDEX

#define GET_LIGATURE_INDEX ( ucs4)
Value:
(ucs4 < 0x3100 \
? (uc_ligature_trie[uc_ligature_trie[ucs4 >> 5] + (ucs4 & 0x1f)]) \
: ucs4 < 0x1fc00 \
? uc_ligature_trie[uc_ligature_trie[((ucs4 - 0x3100) >> 8) + 0x188] + (ucs4 & 0xff)] \
: 0xffff)
static constexpr unsigned short uc_ligature_trie[]

Definition at line 15665 of file qunicodetables.cpp.