[Development] toLower() vs. toCaseFolded()

Marc Mutz marc.mutz at kdab.com
Wed Dec 9 12:20:36 CET 2015


On Wednesday 09 December 2015 10:57:21 Florian Bruhin wrote:
> * Marc Mutz <marc.mutz at kdab.com> [2015-12-09 11:54:54 +0100]:
> > Hi,
> > 
> > http://doc.qt.io/qt-5/qstring.html#toCaseFolded is very vague on what
> > case folding actually _is_ and how it's different from toLower().
> > 
> > Can someone please tell me the difference and why toCaseFolded() exists
> > in the first place? Is it faster? Is it guaranteed to not make the
> > string longer/shorter?
> 
> Maybe http://www.w3.org/International/wiki/Case_folding helps?

Not really. Neither does it patch our docs... :)

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts



More information about the Development mailing list