Changeset 245:239b9a56bd5f
- Timestamp:
- 05/19/08 08:34:47
(6 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Added the compareToIgnoreCase to utils
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r238 |
r245 |
|
| 444 | 444 | } |
|---|
| 445 | 445 | else{ |
|---|
| 446 | | tango.text.convert.Utf.onUnicodeError( "invalid utf8 input", i ); |
|---|
| | 446 | tango.text.convert.Utf.onUnicodeError( "invalid utf8 input "~str, i ); |
|---|
| 447 | 447 | } |
|---|
| 448 | 448 | searchRelCp--; |
|---|
| … | … | |
| 600 | 600 | } |
|---|
| 601 | 601 | |
|---|
| | 602 | public int compareToIgnoreCase( String src, String other ){ |
|---|
| | 603 | return tango.text.Unicode.toFold(src) < tango.text.Unicode.toFold(other); |
|---|
| | 604 | } |
|---|
| | 605 | |
|---|
| 602 | 606 | public bool startsWith( String src, String pattern ){ |
|---|
| 603 | 607 | if( src.length < pattern.length ){ |
|---|