toLocaleUpperCase/toLocaleLowerCase alternative in Qt
Unsolved
General and Desktop
-
I just need to convert QString to upper/lower with locale in mind
in JS there is something like this
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCaseso we can handle case like this:
const city = 'istanbul';
console.log(city.toLocaleUpperCase('en-US'));
// expected output: "ISTANBUL"
console.log(city.toLocaleUpperCase('TR'));
// expected output: "İSTANBUL"I search in qml js implementation and it is unsupported :(
Any idea ? -
Hi,
You are looking for QLocale::toUpper.