} else {
prop = qGetProp(*p);
}
- if (prop->lowerCaseDiff || prop->lowerCaseSpecial) {
+ if (prop->lowerCaseDiff) {
if (QChar::isLowSurrogate(*p))
--p; // safe; diff is 0 for surrogates
QString s(d->size, Qt::Uninitialized);
} else {
prop = qGetProp(*p);
}
- if (prop->caseFoldDiff || prop->caseFoldSpecial) {
+ if (prop->caseFoldDiff) {
if (QChar::isLowSurrogate(*p))
--p; // safe; diff is 0 for surrogates
QString s(d->size, Qt::Uninitialized);
} else {
prop = qGetProp(*p);
}
- if (prop->upperCaseDiff || prop->upperCaseSpecial) {
+ if (prop->upperCaseDiff) {
if (QChar::isLowSurrogate(*p))
--p; // safe; diff is 0 for surrogates
QString s(d->size, Qt::Uninitialized);
utf16map.prepend(length);
specialCaseMaxLen = qMax(specialCaseMaxLen, length);
- int i = 0;
+ if (specialCaseMap.isEmpty())
+ specialCaseMap << 0; // placeholder
+
+ int i = 1;
while (i < specialCaseMap.size()) {
int n = specialCaseMap.at(i);
if (n == length) {
"}\n\n";
- out += "static const ushort specialCaseMap[] = {";
- int i = 0;
+ out += "static const ushort specialCaseMap[] = {\n";
+ out += " 0x0, // placeholder";
+ int i = 1;
while (i < specialCaseMap.size()) {
out += "\n ";
int n = specialCaseMap.at(i);