Mercurial > projects > dwt-linux
changeset 245:239b9a56bd5f
Added the compareToIgnoreCase to utils
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 19 May 2008 14:34:47 +0200 |
parents | befa2f613fdd |
children | f08216d53777 |
files | dwt/dwthelper/utils.d |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;