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/FormData.d

    r201 r238  
    1919import dwt.layout.FormAttachment; 
    2020 
    21 import tango.text.Util; 
    2221import tango.util.Convert; 
     22import dwt.dwthelper.utils; 
    2323 
    2424/** 
     
    239239} 
    240240 
    241 char[] getName () { 
    242     char[] string = this.classinfo.name; 
    243     int index = locatePrior( string, '.'); 
    244     if (index is string.length ) return string; 
     241String getName () { 
     242    String string = this.classinfo.name; 
     243    int index = string.lastIndexOf( '.'); 
     244    if (index is -1 ) return string; 
    245245    return string[ index + 1 .. string.length ]; 
    246246} 
     
    334334 * @return a string representation of the FormData object 
    335335 */ 
    336 override public char[] toString () { 
    337     char[] string = getName()~" {"; 
    338     if (width !is DWT.DEFAULT) string ~= "width="~to!(char[])(width)~" "; 
    339     if (height !is DWT.DEFAULT) string ~= "height="~to!(char[])(height)~" "; 
    340     if (left !is null) string ~= "left="~to!(char[])(left)~" "; 
    341     if (right !is null) string ~= "right="~to!(char[])(right)~" "; 
    342     if (top !is null) string ~= "top="~to!(char[])(top)~" "; 
    343     if (bottom !is null) string ~= "bottom="~to!(char[])(bottom)~" "; 
    344     string = trim( string ); 
     336override public String toString () { 
     337    String string = getName()~" {"; 
     338    if (width !is DWT.DEFAULT) string ~= "width="~to!(String)(width)~" "; 
     339    if (height !is DWT.DEFAULT) string ~= "height="~to!(String)(height)~" "; 
     340    if (left !is null) string ~= "left="~to!(String)(left)~" "; 
     341    if (right !is null) string ~= "right="~to!(String)(right)~" "; 
     342    if (top !is null) string ~= "top="~to!(String)(top)~" "; 
     343    if (bottom !is null) string ~= "bottom="~to!(String)(bottom)~" "; 
     344    string = string.trim(); 
    345345    string ~= "}"; 
    346346    return string;