comparison dwt/dwthelper/utils.d @ 90:c7f7f4d7091a

All widgets are ported
author Jacob Carlborg <doob@me.com>
date Tue, 30 Dec 2008 18:54:31 +0100
parents 97f1b638de63
children d5f4a7c8aa74
comparison
equal deleted inserted replaced
89:8e3c85e1733d 90:c7f7f4d7091a
528 { 528 {
529 static alias CharacterIsLetter isLetter; 529 static alias CharacterIsLetter isLetter;
530 static alias CharacterIsLetterOrDigit isLetterOrDigit; 530 static alias CharacterIsLetterOrDigit isLetterOrDigit;
531 static alias CharacterIsSpaceChar isSpaceChar; 531 static alias CharacterIsSpaceChar isSpaceChar;
532 static alias CharacterIsWhitespace isWhitespace; 532 static alias CharacterIsWhitespace isWhitespace;
533 static alias CharacterIsDigit isDigit;
534
535 static T toLowerCase (T)(T c)
536 {
537 return tango.text.Unicode.toLower([c])[0];
538 }
533 } 539 }
534 540
535 String new_String( String cont, int offset, int len ){ 541 String new_String( String cont, int offset, int len ){
536 return cont[ offset .. offset+len ].dup; 542 return cont[ offset .. offset+len ].dup;
537 } 543 }