summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/stringutil.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/backend/stringutil.cpp b/library/backend/stringutil.cpp
index b5fbd3e..f1ad1b9 100644
--- a/library/backend/stringutil.cpp
+++ b/library/backend/stringutil.cpp
@@ -56,21 +56,21 @@ static const char collationHack[] = {
0x14, //C-T
0x15, //C-U
0x16, //C-V
0x17, //C-W
0x18, //C-X
0x19, //C-Y
0x1a, //C-Z
0x1b, //C-[
-0x1c, //C-\
+0x1c, /* C-\ */
0x1d, //C-]
0x1e, //C-^
0x1f, //C-_
-' ', //
+' ', //
'!', //!
'"', //"
'#', //#
'$', //$
'%', //%
'&', //&
'\'', //'
'(', //(
@@ -120,17 +120,17 @@ static const char collationHack[] = {
'T', //T
'U', //U
'V', //V
'W', //W
'X', //X
'Y', //Y
'Z', //Z
'[', //[
-'\\', //\
+'\\', /* \ */
']', //]
'^', //^
'_', //_
'`', //`
'A', //a
'B', //b
'C', //c
'D', //d
@@ -184,17 +184,17 @@ static const char collationHack[] = {
0x94, //C-M-T
0x95, //C-M-U
0x96, //C-M-V
0x97, //C-M-W
0x98, //C-M-X
0x99, //C-M-Y
0x9a, //C-M-Z
0x9b, //C-M-[
-0x9c, //C-M-\
+0x9c, /* C-M-\ */
0x9d, //C-M-]
0x9e, //C-M-^
0x9f, //C-M-_
' ', // 
'¡', //¡
'¢', //¢
'£', //£
'¤', //¤
@@ -314,17 +314,17 @@ QString buildSortKey( const QString & s )
QString buildSortKey( const QString & s1, const QString & s2 )
{
QString res = s1 + QChar( '\0' ) + s2;
hackString( res );
return res;
}
-QString buildSortKey( const QString & s1, const QString & s2,
+QString buildSortKey( const QString & s1, const QString & s2,
const QString & s3 )
{
QString res = s1 + QChar( '\0' ) + s2 + QChar( '\0' ) + s3;
hackString( res );
return res;
}
static inline QChar coll( QChar u )
@@ -332,17 +332,17 @@ static inline QChar coll( QChar u )
return u.row() ? u : QChar(collationHack[ u.cell() ]);
}
int compare( const QString & s1, const QString & s2 )
{
const QChar* u1 = s1.unicode();
const QChar* u2 = s2.unicode();
-
+
if ( u1 == u2 )
return 0;
if ( u1 == 0 )
return 1;
if ( u2 == 0 )
return -1;
int l=QMIN(s1.length(),s2.length());
while ( l-- && coll(*u1) == coll(*u2) )