unicode: Regenerate qunicodetables{.cpp,_p.h}

Run unicode utility to regenerate the Unicode tables. This reduces
size of the IDNA mapping tables. Adjust the QUrl client code to use
the new API.

Task-number: QTBUG-85323
Change-Id: Iaa8d6932e611f7aa4009a3fae2972de87b875cf8
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Ievgenii Meshcheriakov 2021-09-02 16:15:35 +02:00
parent 5f3f073126
commit 19a48b8545
3 changed files with 5851 additions and 5770 deletions

View File

@ -479,11 +479,9 @@ static QString mapDomainName(const QString &in, QUrl::AceProcessingOptions optio
for (auto c : QChar::fromUcs4(uc))
result.append(c);
break;
case QUnicodeTables::IdnaStatus::Mapped: {
const char16_t *mapping = QUnicodeTables::idnaMapping(uc);
if (mapping != nullptr)
result.append(mapping);
} break;
case QUnicodeTables::IdnaStatus::Mapped:
result.append(QUnicodeTables::idnaMapping(uc));
break;
case QUnicodeTables::IdnaStatus::Disallowed:
return {};
default:

File diff suppressed because it is too large Load Diff

View File

@ -215,8 +215,8 @@ 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
Q_CORE_EXPORT QStringView QT_FASTCALL idnaMapping(char32_t usc4) noexcept;
inline QStringView idnaMapping(QChar ch) noexcept
{ return idnaMapping(ch.unicode()); }
} // namespace QUnicodeTables