QUrlIdna: port NameprepCaseFoldingEntry from int-ish to char-ish
Change-Id: I43171aae8188cc68d9c03716451c6427486cc55c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
f5a56cf9bb
commit
72f6aaa7d4
@ -56,14 +56,14 @@ static const uint initial_bias = 72;
|
||||
static const uint initial_n = 128;
|
||||
|
||||
struct NameprepCaseFoldingEntry {
|
||||
uint uc;
|
||||
ushort mapping[4];
|
||||
char32_t uc;
|
||||
char16_t mapping[4];
|
||||
};
|
||||
|
||||
inline bool operator<(uint one, const NameprepCaseFoldingEntry &other)
|
||||
inline bool operator<(char32_t one, const NameprepCaseFoldingEntry &other)
|
||||
{ return one < other.uc; }
|
||||
|
||||
inline bool operator<(const NameprepCaseFoldingEntry &one, uint other)
|
||||
inline bool operator<(const NameprepCaseFoldingEntry &one, char32_t other)
|
||||
{ return one.uc < other; }
|
||||
|
||||
static const NameprepCaseFoldingEntry NameprepCaseFolding[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user