comparison dwt/dwthelper/utils.d @ 229:5ff96efb6f4b

Additions for forms
author Frank Benoit <benoit@tionex.de>
date Sat, 24 May 2008 08:37:28 +0200
parents 628e9518870e
children ec7da638647f
comparison
equal deleted inserted replaced
228:628e9518870e 229:5ff96efb6f4b
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 }