//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <qtextcodec.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QTextEncoder.h>

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTextEncoder_fromUnicode(JNIEnv* env, jobject obj, jstring uc, jintArray lenInOut)
{
	QCString  _qstring;
static QString* _qstring_uc = 0;
	int* _int_lenInOut = QtSupport::toIntPtr(env, lenInOut);
	_qstring = ((QTextEncoder*) QtSupport::getQt(env, obj))->fromUnicode((const QString&)*(QString*) QtSupport::toQString(env, uc, &_qstring_uc),  (int&) *_int_lenInOut);
	env->SetIntArrayRegion(lenInOut, 0, 1, (jint *) _int_lenInOut);
	return QtSupport::fromQCString(env, &_qstring);
}

