comparison dwt/internal/mozilla/nsEmbedString2.d @ 305:c7c696cdfec2

Mozilla module progress; fixes to other browser modules; update XPCOM interfaces
author John Reimer<terminal.node@gmail.com>
date Sat, 16 Aug 2008 22:53:35 -0700
parents eec6ddb07873
children
comparison
equal deleted inserted replaced
304:16ba3d9cb209 305:c7c696cdfec2
3 import Utf = tango.text.convert.Utf; 3 import Utf = tango.text.convert.Utf;
4 4
5 import dwt.internal.mozilla.Common; 5 import dwt.internal.mozilla.Common;
6 import dwt.internal.mozilla.nsStringAPI; 6 import dwt.internal.mozilla.nsStringAPI;
7 7
8 class nsEmbedString 8 scope class nsEmbedString
9 { 9 {
10 this(wchar[] s) 10 this(wchar[] s)
11 { 11 {
12 nsresult result; 12 nsresult result;
13 result = NS_StringContainerInit2(&str, s.ptr, s.length, 0); 13 result = NS_StringContainerInit2(&str, s.ptr, s.length, 0);
47 private: 47 private:
48 nsStringContainer str; 48 nsStringContainer str;
49 } 49 }
50 50
51 51
52 class nsEmbedCString 52 scope class nsEmbedCString
53 { 53 {
54 this(char[] s) 54 this(char[] s)
55 { 55 {
56 nsresult result; 56 nsresult result;
57 result = NS_CStringContainerInit2(&str, s.ptr, s.length, 0); 57 result = NS_CStringContainerInit2(&str, s.ptr, s.length, 0);