comparison dwt/dwthelper/utils.d @ 250:66441b183ff5

Additions for forms
author Frank Benoit <benoit@tionex.de>
date Sat, 24 May 2008 08:34:19 +0200
parents e1ec1581e355
children 8bca790583c3
comparison
equal deleted inserted replaced
249:e1ec1581e355 250:66441b183ff5
118 alias Byte ValueWrapperByte; 118 alias Byte ValueWrapperByte;
119 119
120 120
121 class Integer : ValueWrapperT!(int) { 121 class Integer : ValueWrapperT!(int) {
122 122
123 public static int MIN_VALUE = 0x80000000; 123 public static const int MIN_VALUE = 0x80000000;
124 public static int MAX_VALUE = 0x7fffffff; 124 public static const int MAX_VALUE = 0x7fffffff;
125 public static int SIZE = 32; 125 public static const int SIZE = 32;
126 126
127 public this ( int value ){ 127 public this ( int value ){
128 super( value ); 128 super( value );
129 } 129 }
130 130
591 } 591 }
592 592
593 public int compareToIgnoreCase( String src, String other ){ 593 public int compareToIgnoreCase( String src, String other ){
594 return tango.text.Unicode.toFold(src) < tango.text.Unicode.toFold(other); 594 return tango.text.Unicode.toFold(src) < tango.text.Unicode.toFold(other);
595 } 595 }
596 public int compareTo( String src, String other ){
597 return src < other;
598 }
596 599
597 public bool startsWith( String src, String pattern ){ 600 public bool startsWith( String src, String pattern ){
598 if( src.length < pattern.length ){ 601 if( src.length < pattern.length ){
599 return false; 602 return false;
600 } 603 }