Mercurial > projects > dwt-mac
comparison dwt/dwthelper/utils.d @ 62:10eaa644646f
Ported dwt.widgets.Combo
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 23 Dec 2008 22:21:02 +0100 |
parents | c74ba20de292 |
children | 990305995bc6 |
comparison
equal
deleted
inserted
replaced
61:c74ba20de292 | 62:10eaa644646f |
---|---|
5 | 5 |
6 public import dwt.dwthelper.System; | 6 public import dwt.dwthelper.System; |
7 public import Math = tango.math.Math; | 7 public import Math = tango.math.Math; |
8 | 8 |
9 public import tango.core.Exception : IllegalArgumentException, IOException, PlatformException; | 9 public import tango.core.Exception : IllegalArgumentException, IOException, PlatformException; |
10 public import tango.text.convert.Utf; | |
10 | 11 |
11 import tango.io.Stdout; | 12 import tango.io.Stdout; |
12 | 13 |
13 version (LDC) | 14 version (LDC) |
14 { | 15 { |
535 | 536 |
536 String new_String( String cont, int offset, int len ){ | 537 String new_String( String cont, int offset, int len ){ |
537 return cont[ offset .. offset+len ].dup; | 538 return cont[ offset .. offset+len ].dup; |
538 } | 539 } |
539 | 540 |
541 String new_String(String cont){ | |
542 return cont.dup; | |
543 } | |
544 | |
545 String new_String(wchar[] cont){ | |
546 return cont.toString16(); | |
547 } | |
548 | |
540 public String toUpperCase( String str ){ | 549 public String toUpperCase( String str ){ |
541 return tango.text.Unicode.toUpper( str ); | 550 return tango.text.Unicode.toUpper( str ); |
542 } | 551 } |
543 | 552 |
544 public int indexOf( String str, char searched ){ | 553 public int indexOf( String str, char searched ){ |