Changeset 235:ec7da638647f
- Timestamp:
- 06/08/08 09:12:08
(3 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Fix string compare in dwthelper/utils.d
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r229 |
r235 |
|
| 592 | 592 | |
|---|
| 593 | 593 | public int compareToIgnoreCase( String src, String other ){ |
|---|
| 594 | | return tango.text.Unicode.toFold(src) < tango.text.Unicode.toFold(other); |
|---|
| | 594 | return compareTo( tango.text.Unicode.toFold(src), tango.text.Unicode.toFold(other)); |
|---|
| 595 | 595 | } |
|---|
| 596 | 596 | public int compareTo( String src, String other ){ |
|---|
| 597 | | return src < other; |
|---|
| | 597 | return typeid(String).compare( cast(void*)&src, cast(void*)&other ); |
|---|
| 598 | 598 | } |
|---|
| 599 | 599 | |
|---|