view 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
line wrap: on
line source
#include <QString>
#include "qtd_core.h"

extern "C" DLL_PUBLIC const ushort* qtd_QString_utf16
(void* __this_nativeId)
{
    QString *__qt_this = (QString *) __this_nativeId;
    return __qt_this->utf16();
}

extern "C" DLL_PUBLIC int qtd_QString_size
(void* __this_nativeId)
{
    QString *__qt_this = (QString *) __this_nativeId;
    return __qt_this->size();
}

extern "C" DLL_PUBLIC void qtd_QString_operatorAssign
(void* __this_nativeId,
 DArray text)
{
    QString *__qt_this = (QString *) __this_nativeId;
    *__qt_this = QString::fromUtf8((const char *)text.ptr, text.length);
}

extern "C" DLL_PUBLIC void qtd_QString_destructor(void *ptr)
{
    delete (QString *)ptr;
}

extern "C" DLL_PUBLIC void qtd_QString_call_destructor(QString *ptr)
{
    ptr->~QString();
}


extern "C" DLL_PUBLIC void* qtd_QString_QString_QString
(void* string0)
{
    const QString&  __qt_string0 = (const QString& ) *(QString *)string0;
    QString *__qt_this = new QString((const QString& )__qt_string0);
    return (void *) __qt_this;
}

extern "C" DLL_PUBLIC void* qtd_QString_new_fromUtf8_at
(void* place, DArray text)
{
    QString *__qt_this = new(place) QString;
    *__qt_this = QString::fromUtf8((const char *)text.ptr, text.length);
    return __qt_this;
}

extern "C" DLL_PUBLIC void* qtd_QString_placed_copy(void* string0, void* place) {
    const QString&  __qt_string0 = (const QString& ) *(QString *)string0;
    QString *result = new (place)QString((const QString& )__qt_string0);
    return (void *) result;
}