# HG changeset patch # User Frank Benoit # Date 1211200487 -7200 # Node ID 239b9a56bd5f45ba9462089ec758daabc41d6a8c # Parent befa2f613fdda37eef47f0eb9f31ecc754d12dbb Added the compareToIgnoreCase to utils diff -r befa2f613fdd -r 239b9a56bd5f dwt/dwthelper/utils.d --- a/dwt/dwthelper/utils.d Mon May 19 02:24:28 2008 +0200 +++ b/dwt/dwthelper/utils.d Mon May 19 14:34:47 2008 +0200 @@ -443,7 +443,7 @@ i+=4; } else{ - tango.text.convert.Utf.onUnicodeError( "invalid utf8 input", i ); + tango.text.convert.Utf.onUnicodeError( "invalid utf8 input "~str, i ); } searchRelCp--; } @@ -599,6 +599,10 @@ return tango.text.Unicode.toFold(src) == tango.text.Unicode.toFold(other); } +public int compareToIgnoreCase( String src, String other ){ + return tango.text.Unicode.toFold(src) < tango.text.Unicode.toFold(other); +} + public bool startsWith( String src, String pattern ){ if( src.length < pattern.length ){ return false;