-rw-r--r-- | library/backend/stringutil.cpp | 12 |
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 | |||
@@ -60,13 +60,13 @@ static const char collationHack[] = { | |||
60 | 0x18, //C-X | 60 | 0x18, //C-X |
61 | 0x19, //C-Y | 61 | 0x19, //C-Y |
62 | 0x1a, //C-Z | 62 | 0x1a, //C-Z |
63 | 0x1b, //C-[ | 63 | 0x1b, //C-[ |
64 | 0x1c, //C-\ | 64 | 0x1c, /* C-\ */ |
65 | 0x1d, //C-] | 65 | 0x1d, //C-] |
66 | 0x1e, //C-^ | 66 | 0x1e, //C-^ |
67 | 0x1f, //C-_ | 67 | 0x1f, //C-_ |
68 | ' ', // | 68 | ' ', // |
69 | '!', //! | 69 | '!', //! |
70 | '"', //" | 70 | '"', //" |
71 | '#', //# | 71 | '#', //# |
72 | '$', //$ | 72 | '$', //$ |
@@ -124,9 +124,9 @@ static const char collationHack[] = { | |||
124 | 'X', //X | 124 | 'X', //X |
125 | 'Y', //Y | 125 | 'Y', //Y |
126 | 'Z', //Z | 126 | 'Z', //Z |
127 | '[', //[ | 127 | '[', //[ |
128 | '\\', //\ | 128 | '\\', /* \ */ |
129 | ']', //] | 129 | ']', //] |
130 | '^', //^ | 130 | '^', //^ |
131 | '_', //_ | 131 | '_', //_ |
132 | '`', //` | 132 | '`', //` |
@@ -188,9 +188,9 @@ static const char collationHack[] = { | |||
188 | 0x98, //C-M-X | 188 | 0x98, //C-M-X |
189 | 0x99, //C-M-Y | 189 | 0x99, //C-M-Y |
190 | 0x9a, //C-M-Z | 190 | 0x9a, //C-M-Z |
191 | 0x9b, //C-M-[ | 191 | 0x9b, //C-M-[ |
192 | 0x9c, //C-M-\ | 192 | 0x9c, /* C-M-\ */ |
193 | 0x9d, //C-M-] | 193 | 0x9d, //C-M-] |
194 | 0x9e, //C-M-^ | 194 | 0x9e, //C-M-^ |
195 | 0x9f, //C-M-_ | 195 | 0x9f, //C-M-_ |
196 | ' ', // | 196 | ' ', // |
@@ -318,9 +318,9 @@ QString buildSortKey( const QString & s1, const QString & s2 ) | |||
318 | hackString( res ); | 318 | hackString( res ); |
319 | return res; | 319 | return res; |
320 | } | 320 | } |
321 | 321 | ||
322 | QString buildSortKey( const QString & s1, const QString & s2, | 322 | QString buildSortKey( const QString & s1, const QString & s2, |
323 | const QString & s3 ) | 323 | const QString & s3 ) |
324 | { | 324 | { |
325 | QString res = s1 + QChar( '\0' ) + s2 + QChar( '\0' ) + s3; | 325 | QString res = s1 + QChar( '\0' ) + s2 + QChar( '\0' ) + s3; |
326 | hackString( res ); | 326 | hackString( res ); |
@@ -336,9 +336,9 @@ static inline QChar coll( QChar u ) | |||
336 | int compare( const QString & s1, const QString & s2 ) | 336 | int compare( const QString & s1, const QString & s2 ) |
337 | { | 337 | { |
338 | const QChar* u1 = s1.unicode(); | 338 | const QChar* u1 = s1.unicode(); |
339 | const QChar* u2 = s2.unicode(); | 339 | const QChar* u2 = s2.unicode(); |
340 | 340 | ||
341 | if ( u1 == u2 ) | 341 | if ( u1 == u2 ) |
342 | return 0; | 342 | return 0; |
343 | if ( u1 == 0 ) | 343 | if ( u1 == 0 ) |
344 | return 1; | 344 | return 1; |