Mercurial > projects > dwt-win
diff dwt/custom/StyleRange.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | 97c2675aca38 |
children | 36f5cb12e1a2 |
line wrap: on
line diff
--- a/dwt/custom/StyleRange.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/custom/StyleRange.d Mon May 05 00:12:38 2008 +0200 @@ -20,6 +20,7 @@ import dwt.custom.StyleRange; import dwt.custom.TextChangedEvent; import dwt.custom.TextChangingEvent; +import dwt.dwthelper.utils; static import tango.text.Text; alias tango.text.Text.Text!(char) StringBuffer; @@ -175,7 +176,7 @@ * * @return a string representation of the StyleRange */ -public override char[] toString() { +public override String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("StyleRange {"); buffer.append(start); @@ -195,7 +196,7 @@ default: buffer.append("normal"); } - char[] str = super.toString(); + String str = super.toString(); int index = tango.text.Util.locate( str, '{'); if( index is str.length ) index = -1; str = str[ index + 1 .. $ ];