Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/mozilla/nsStringAPI.d @ 51:c01d033c633a
[swt lin]
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 19:58:06 +0100 |
parents | ddbfe84d86df |
children | 7e78af7adab5 |
comparison
equal
deleted
inserted
replaced
50:d5075f5226e5 | 51:c01d033c633a |
---|---|
93 PRBool terminated; | 93 PRBool terminated; |
94 uint len = NS_StringGetData(str, &buffer, &terminated); | 94 uint len = NS_StringGetData(str, &buffer, &terminated); |
95 return buffer[0 .. len].dup; | 95 return buffer[0 .. len].dup; |
96 } | 96 } |
97 | 97 |
98 static char[] toString( nsAString* str ) | 98 static String toString( nsAString* str ) |
99 { | 99 { |
100 return Utf.toString( nsAString.toString16( str ) ); | 100 return String_valueOf( nsAString.toString16( str ) ); |
101 } | 101 } |
102 | 102 |
103 private: | 103 private: |
104 void *v; | 104 void *v; |
105 } | 105 } |