comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/mozilla/nsStringAPI.d @ 9:950d84783eac

Removing direct tango deps.
author Frank Benoit <benoit@tionex.de>
date Mon, 09 Mar 2009 14:26:40 +0100
parents 6dd524f61e62
children 0ecb2b338560
comparison
equal deleted inserted replaced
8:2847134a5fc0 9:950d84783eac
1 module org.eclipse.swt.internal.mozilla.nsStringAPI; 1 module org.eclipse.swt.internal.mozilla.nsStringAPI;
2 2
3 import Utf = tango.text.convert.Utf; 3 import java.lang.all;
4 import org.eclipse.swt.internal.mozilla.Common; 4 import org.eclipse.swt.internal.mozilla.Common;
5 5
6 extern (System): 6 extern (System):
7 7
8 /****************************************************************************** 8 /******************************************************************************
90 return buffer[0 .. len].dup; 90 return buffer[0 .. len].dup;
91 } 91 }
92 92
93 static char[] toString( nsAString* str ) 93 static char[] toString( nsAString* str )
94 { 94 {
95 return Utf.toString( nsAString.toString16( str ) ); 95 return String_valueOf( nsAString.toString16( str ) );
96 } 96 }
97 97
98 private: 98 private:
99 void *v; 99 void *v;
100 } 100 }