comparison dwt/dwthelper/utils.d @ 35:7d135fe0caf2

Ported dwt.graphics.Cursor and dwt.widgets.MenuItem
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sun, 14 Sep 2008 23:32:29 +0200
parents 5123b17c98ef
children db5a898b2119
comparison
equal deleted inserted replaced
34:5123b17c98ef 35:7d135fe0caf2
523 static alias CharacterIsLetterOrDigit isLetterOrDigit; 523 static alias CharacterIsLetterOrDigit isLetterOrDigit;
524 static alias CharacterIsSpaceChar isSpaceChar; 524 static alias CharacterIsSpaceChar isSpaceChar;
525 static alias CharacterIsWhitespace isWhitespace; 525 static alias CharacterIsWhitespace isWhitespace;
526 } 526 }
527 527
528 String new_String( String cont, int offset, int len ){
529 return cont[ offset .. offset+len ].dup;
530 }
531
528 public String toUpperCase( String str ){ 532 public String toUpperCase( String str ){
529 return tango.text.Unicode.toUpper( str ); 533 return tango.text.Unicode.toUpper( str );
530 } 534 }
531 535
532 public int indexOf( String str, char searched ){ 536 public int indexOf( String str, char searched ){