Mercurial > projects > qtd
comparison cpp/qt_core/QString_shell.cpp @ 296:5173835bb372 signals
iteration over QList with opApply
author | eldar |
---|---|
date | Sun, 22 Nov 2009 20:43:10 +0000 |
parents | 7dd099050621 |
children | 55ee4603365d |
comparison
equal
deleted
inserted
replaced
295:463563fc9e17 | 296:5173835bb372 |
---|---|
1 #include <QString> | 1 #include <QString> |
2 #include "qtd_core.h" | 2 #include "qtd_core.h" |
3 | 3 |
4 extern "C" DLL_PUBLIC const ushort* __qtd_QString_utf16 | 4 extern "C" DLL_PUBLIC const ushort* qtd_QString_utf16 |
5 (void* __this_nativeId) | 5 (void* __this_nativeId) |
6 { | 6 { |
7 QString *__qt_this = (QString *) __this_nativeId; | 7 QString *__qt_this = (QString *) __this_nativeId; |
8 return __qt_this->utf16(); | 8 return __qt_this->utf16(); |
9 } | 9 } |
10 | 10 |
11 extern "C" DLL_PUBLIC int __qtd_QString_size | 11 extern "C" DLL_PUBLIC int qtd_QString_size |
12 (void* __this_nativeId) | 12 (void* __this_nativeId) |
13 { | 13 { |
14 QString *__qt_this = (QString *) __this_nativeId; | 14 QString *__qt_this = (QString *) __this_nativeId; |
15 return __qt_this->size(); | 15 return __qt_this->size(); |
16 } | 16 } |
17 | 17 |
18 extern "C" DLL_PUBLIC void __qtd_QString_operatorAssign | 18 extern "C" DLL_PUBLIC void qtd_QString_operatorAssign |
19 (void* __this_nativeId, | 19 (void* __this_nativeId, |
20 DArray text) | 20 DArray text) |
21 { | 21 { |
22 QString *__qt_this = (QString *) __this_nativeId; | 22 QString *__qt_this = (QString *) __this_nativeId; |
23 *__qt_this = QString::fromUtf8((const char *)text.ptr, text.length); | 23 *__qt_this = QString::fromUtf8((const char *)text.ptr, text.length); |
24 } | 24 } |
25 | |
26 extern "C" DLL_PUBLIC void qtd_QString_destructor(void *ptr) | |
27 { | |
28 delete (QString *)ptr; | |
29 } | |
30 | |
31 extern "C" DLL_PUBLIC void qtd_QString_call_destructor(QString *ptr) | |
32 { | |
33 ptr->~QString(); | |
34 } | |
35 | |
36 | |
37 extern "C" DLL_PUBLIC void* qtd_QString_QString_QString | |
38 (void* string0) | |
39 { | |
40 const QString& __qt_string0 = (const QString& ) *(QString *)string0; | |
41 QString *__qt_this = new QString((const QString& )__qt_string0); | |
42 return (void *) __qt_this; | |
43 } | |
44 | |
45 extern "C" DLL_PUBLIC void* qtd_QString_new_fromUtf8_at | |
46 (void* place, DArray text) | |
47 { | |
48 QString *__qt_this = new(place) QString; | |
49 *__qt_this = QString::fromUtf8((const char *)text.ptr, text.length); | |
50 return __qt_this; | |
51 } | |
52 | |
53 extern "C" DLL_PUBLIC void* qtd_QString_placed_copy(void* string0, void* place) { | |
54 const QString& __qt_string0 = (const QString& ) *(QString *)string0; | |
55 QString *result = new (place)QString((const QString& )__qt_string0); | |
56 return (void *) result; | |
57 } |