unicode: Regenerate Unicode tables

Re-run unicode utility to update the Unicode tables. This adds
properties and mappings needed to implement UTS #46 (IDNA).

Task-number: QTBUG-85323
Change-Id: Id1de91caddd82095f8f8f2301bfd7bb2ee3fcafd
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Ievgenii Meshcheriakov 2021-08-02 11:12:59 +02:00
parent 2afe1a3c19
commit f5360b7c72
2 changed files with 15078 additions and 9179 deletions

File diff suppressed because it is too large Load Diff

View File

@ -94,7 +94,8 @@ struct Properties {
ushort graphemeBreakClass : 5; /* 5 used */
ushort wordBreakClass : 5; /* 5 used */
ushort lineBreakClass : 6; /* 6 used */
ushort sentenceBreakClass : 8; /* 4 used */
ushort sentenceBreakClass : 4; /* 4 used */
ushort idnaStatus : 4; /* 3 used */
ushort script : 8;
};
@ -186,6 +187,14 @@ enum LineBreakClass {
NumLineBreakClasses
};
enum class IdnaStatus : unsigned int {
Disallowed,
Valid,
Ignored,
Mapped,
Deviation
};
Q_CORE_EXPORT GraphemeBreakClass QT_FASTCALL graphemeBreakClass(char32_t ucs4) noexcept;
inline GraphemeBreakClass graphemeBreakClass(QChar ch) noexcept
{ return graphemeBreakClass(ch.unicode()); }
@ -202,6 +211,14 @@ Q_CORE_EXPORT LineBreakClass QT_FASTCALL lineBreakClass(char32_t ucs4) noexcept;
inline LineBreakClass lineBreakClass(QChar ch) noexcept
{ return lineBreakClass(ch.unicode()); }
Q_CORE_EXPORT IdnaStatus QT_FASTCALL idnaStatus(char32_t ucs4) noexcept;
inline IdnaStatus idnaStatus(QChar ch) noexcept
{ return idnaStatus(ch.unicode()); }
Q_CORE_EXPORT const char16_t * QT_FASTCALL idnaMapping(char32_t usc4) noexcept;
inline const char16_t *idnaMapping(QChar ch) noexcept
{ return idnaMapping(ch.unicode()); }
} // namespace QUnicodeTables
QT_END_NAMESPACE