[Interest] QChar can't handle 1:N case conversion?

Nikos Chantziaras realnc at gmail.com
Fri Jul 27 09:23:17 CEST 2012


Thanks for the pointer.  I'll just use QString directly then.  Is much 
simpler that setting up a QMap.

On 27/07/12 08:44, Constantin Makshin wrote:
> You can use QMap<QChar, QString>. I don't think these conversions are
> [very] common in various languages, so there shouldn't be any problems
> with manual creation of this conversion map.
>
> On Jul 27, 2012 6:53 AM, "Nikos Chantziaras" <realnc at gmail.com
> <mailto:realnc at gmail.com>> wrote:
>
>     Normally, Unicode defines conversions for things like "ß" (U+00DF,
>     German sharp S) to "SS".  How can I do that with QChar?  The
>     toCaseFolded() and toLower() member functions return a single QChar,
>     while mappings like "ß" -> "SS" would need two QChars to get the result.
>
>     How's this supposed to work?





More information about the Interest mailing list