Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qunicodetables.cpp File Reference

(d5e40b5e58c187086d7c23af1860c1af28957ccc)

#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 }
 
enum  { QUnicodeTables::NormalizationCorrectionsVersionMax = 7 }
 

Functions

static Q_DECL_CONST_FUNCTION const PropertiesQUnicodeTables::qGetProp (char32_t ucs4) noexcept
 
static Q_DECL_CONST_FUNCTION const PropertiesQUnicodeTables::qGetProp (char16_t ucs2) 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 const Properties *QT_FASTCALL QUnicodeTables::properties (char16_t ucs2) 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 ucs4) noexcept
 

Variables

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 12755 of file qunicodetables.cpp.

Referenced by decompositionHelper().

◆ GET_LIGATURE_INDEX

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

Definition at line 15025 of file qunicodetables.cpp.

Referenced by ligatureHelper().