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:
parent
2afe1a3c19
commit
f5360b7c72
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user