comparison qt/core/QString.d @ 56:d5a6b6269f44

duic is working now on the first testcase, if there are any issues with it please report
author eldar
date Mon, 18 May 2009 22:15:59 +0000
parents cf8a415f3f32
children 7dd099050621
comparison
equal deleted inserted replaced
55:63c31e221118 56:d5a6b6269f44
1 module qt.core.QString; 1 module qt.core.QString;
2
3 import qt.QGlobal;
2 4
3 version (Tango) 5 version (Tango)
4 { 6 {
5 import tango.text.convert.Utf : toString; 7 import tango.text.convert.Utf : toString;
6 } 8 }
30 } 32 }
31 33
32 public void assign(char[] text) { 34 public void assign(char[] text) {
33 __qtd_QString_operatorAssign(native_id, text.ptr, text.length); 35 __qtd_QString_operatorAssign(native_id, text.ptr, text.length);
34 } 36 }
37
38 public static string fromUtf8(string source) {
39 return source;
40 }
35 } 41 }
36 42
37 private extern (C) wchar* __qtd_QString_utf16(void* __this_nativeId); 43 private extern (C) wchar* __qtd_QString_utf16(void* __this_nativeId);
38 private extern (C) int __qtd_QString_size(void* __this_nativeId); 44 private extern (C) int __qtd_QString_size(void* __this_nativeId);
39 private extern (C) void __qtd_QString_operatorAssign(void* __this_nativeId, char* text, uint text_size); 45 private extern (C) void __qtd_QString_operatorAssign(void* __this_nativeId, char* text, uint text_size);