Commit ffe0b969 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Customwizard: Handle unicode pecularities when capitalizing the first letter



Example: 'LATIN SMALL LETTER DZ' (U+01F3) is rendered as "dz".
The uppercase of that is 'LATIN CAPITAL LETTER DZ' (U+01F1), or "DZ".
The titlecase is 'LATIN CAPITAL LETTER D WITH SMALL LETTER Z' (U+01F2) "Dz",
which is what I would expect here when capitilizing the first letter.

Change-Id: If4fe342e310168dd6190034d4f1ceca4c2ef4a1a
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 6ef5aaad
......@@ -890,7 +890,7 @@ bool replaceFieldHelper(ValueStringTransformation transform,
case 'c': // Capitalize first letter.
replacement = it.value();
if (!replacement.isEmpty())
replacement[0] = replacement.at(0).toUpper();
replacement[0] = replacement.at(0).toTitleCase();
break;
default:
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment