diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/custom/StyleRange.d @ 9:950d84783eac

Removing direct tango deps.
author Frank Benoit <benoit@tionex.de>
date Mon, 09 Mar 2009 14:26:40 +0100
parents 4c0057e71936
children d46287db17ed
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/custom/StyleRange.d	Thu Mar 05 15:12:35 2009 +0100
+++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/custom/StyleRange.d	Mon Mar 09 14:26:40 2009 +0100
@@ -14,7 +14,6 @@
 
 import java.lang.all;
 
-
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.graphics.Color;
 import org.eclipse.swt.graphics.TextStyle;
@@ -217,9 +216,8 @@
             buffer.append("normal");
     }
     String str = super.toString();
-    int index = tango.text.Util.locate( str, '{');
-    if( index is str.length ) index = -1;
-    str = str[ index + 1 .. $ ];
+    int index = str.indexOf( '{');
+    str = str.substring( index + 1 );
     if (str.length > 1) buffer.append(", ");
     buffer.append(str);
     return buffer.toString();