Show
Ignore:
Timestamp:
05/04/08 18:42:55 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted char[] to String

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/layout/RowData.d

    r201 r238  
    1717import dwt.widgets.Control; 
    1818 
    19 import tango.text.Util; 
    2019import tango.util.Convert; 
     20import dwt.dwthelper.utils; 
    2121 
    2222/** 
     
    106106} 
    107107 
    108 char[] getName () { 
    109     char[] string = this.classinfo.name; 
    110     int index = locatePrior( string, '.'); 
    111     if (index is string.length ) return string; 
     108String getName () { 
     109    String string = this.classinfo.name; 
     110    int index = string.lastIndexOf('.'); 
     111    if (index is -1 ) return string; 
    112112    return string[ index + 1 .. string.length ]; 
    113113} 
     
    119119 * @return a string representation of the RowData object 
    120120 */ 
    121 override public char[] toString () { 
    122     char[] string = getName ()~" {"; 
    123     if (width !is DWT.DEFAULT) string ~= "width="~to!(char[])(width)~" "; 
    124     if (height !is DWT.DEFAULT) string ~= "height="~to!(char[])(height)~" "; 
    125     if (exclude) string ~= "exclude="~to!(char[])(exclude)~" "; 
    126     string = trim( string ); 
     121override public String toString () { 
     122    String string = getName ()~" {"; 
     123    if (width !is DWT.DEFAULT) string ~= "width="~to!(String)(width)~" "; 
     124    if (height !is DWT.DEFAULT) string ~= "height="~to!(String)(height)~" "; 
     125    if (exclude) string ~= "exclude="~to!(String)(exclude)~" "; 
     126    string = string.trim(); 
    127127    string ~= "}"; 
    128128    return string;