String comparison and unicode

Dibo

I'm using qSort in Qt to sort QList containing struct. I noticed that Polish character "Ś" is at the end or beginning of sorted list (depending on order). Is there any string comparison function which places "Ś" next to "S"?

Kuba hasn't forgotten Monica

You need to use QString::localeAwareCompare for your comparison function.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Unicode elementwise string comparison in numpy

From Dev

PHP Japanese string comparison with Unicode

From Dev

Django template unicode String comparison

From Dev

solving the comparison of unicode input string in the file with unicode data

From Dev

Unicode string comparison being interpreted as unequal (Python/Django app)

From Dev

When is it better to use value comparison instead of identify comparison when checking if a string is unicode?

From Dev

Unicode Comparison in Perl and Java

From Dev

Unicode comparison of Cyrillic 'С' and Latin 'C'

From Dev

caseless comparison of two unicode strings

From Dev

String Comparison - Object with String

From Dev

convert string representation of unicode to unicode

From Dev

Python unicode string to string?

From Dev

String to unicode string

From Dev

string comparison failure for xml string comparison

From Dev

SQL Server 2008 and Unicode Character comparison

From Dev

SQL Server 2008 and Unicode Character comparison

From Dev

UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode

From Dev

Python unittest AssertionError: unicode string is not unicode string

From Dev

fast way for string comparison

From Dev

std::string comparison, lexicographical or not

From Dev

Case Sensitive String Comparison

From Dev

string comparison in Javascript

From Dev

bash string comparison fails

From Dev

String comparison in Windbg script

From Dev

String comparison with QuickConverter

From Dev

Lisp: advanced string comparison

From Dev

String Comparison Length Mismatch

From Dev

Javascript Alphanumeric String Comparison

From Dev

Javascript's string comparison

Related Related

HotTag

Archive