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

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

class QRegExpJBridge : public QRegExp
{
public:
	QRegExpJBridge() : QRegExp() {};
	QRegExpJBridge(const QString& arg1,bool arg2,bool arg3) : QRegExp(arg1,arg2,arg3) {};
	QRegExpJBridge(const QString& arg1,bool arg2) : QRegExp(arg1,arg2) {};
	QRegExpJBridge(const QString& arg1) : QRegExp(arg1) {};
	QRegExpJBridge(const QRegExp& arg1) : QRegExp(arg1) {};
	~QRegExpJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QRegExp_cap__(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QRegExp*) QtSupport::getQt(env, obj))->cap();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QRegExp_cap__I(JNIEnv* env, jobject obj, jint nth)
{
	QString  _qstring;
	_qstring = ((QRegExp*) QtSupport::getQt(env, obj))->cap((int) nth);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QRegExp_capturedTexts(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QRegExp*) QtSupport::getQt(env, obj))->capturedTexts();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegExp_caseSensitive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QRegExp*) QtSupport::getQt(env, obj))->caseSensitive();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QRegExp_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QRegExp_errorString(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QRegExp*) QtSupport::getQt(env, obj))->errorString();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QRegExp_escape(JNIEnv* env, jclass cls, jstring str)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_str = 0;
	_qstring = QRegExpJBridge::escape((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegExp_exactMatch(JNIEnv* env, jobject obj, jstring str)
{
static QString* _qstring_str = 0;
	jboolean xret = (jboolean) ((QRegExp*) QtSupport::getQt(env, obj))->exactMatch((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QRegExp*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegExp_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegExp_isEmpty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QRegExp*) QtSupport::getQt(env, obj))->isEmpty();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegExp_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QRegExp*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_match__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
static QString* _qstring_str = 0;
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->match((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_match__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint index)
{
static QString* _qstring_str = 0;
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->match((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (int) index);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_match__Ljava_lang_String_2I_3I(JNIEnv* env, jobject obj, jstring str, jint index, jintArray len)
{
static QString* _qstring_str = 0;
	int* _int_len = QtSupport::toIntPtr(env, len);
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->match((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (int) index,  (int*) _int_len);
	env->SetIntArrayRegion(len, 0, 1, (jint *) _int_len);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_match__Ljava_lang_String_2I_3IZ(JNIEnv* env, jobject obj, jstring str, jint index, jintArray len, jboolean indexIsStart)
{
static QString* _qstring_str = 0;
	int* _int_len = QtSupport::toIntPtr(env, len);
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->match((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (int) index,  (int*) _int_len, (bool) indexIsStart);
	env->SetIntArrayRegion(len, 0, 1, (jint *) _int_len);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_matchedLength(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->matchedLength();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegExp_minimal(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QRegExp*) QtSupport::getQt(env, obj))->minimal();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_newQRegExp__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegExpJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_newQRegExp__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring pattern)
{
static QString* _qstring_pattern = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegExpJBridge((const QString&)*(QString*) QtSupport::toQString(env, pattern, &_qstring_pattern)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_newQRegExp__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring pattern, jboolean caseSensitive)
{
static QString* _qstring_pattern = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegExpJBridge((const QString&)*(QString*) QtSupport::toQString(env, pattern, &_qstring_pattern), (bool) caseSensitive));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_newQRegExp__Ljava_lang_String_2ZZ(JNIEnv* env, jobject obj, jstring pattern, jboolean caseSensitive, jboolean wildcard)
{
static QString* _qstring_pattern = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegExpJBridge((const QString&)*(QString*) QtSupport::toQString(env, pattern, &_qstring_pattern), (bool) caseSensitive, (bool) wildcard));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_newQRegExp__Lorg_kde_qt_QRegExp_2(JNIEnv* env, jobject obj, jobject rx)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QRegExpJBridge((const QRegExp&)*(const QRegExp*) QtSupport::getQt(env, rx)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_numCaptures(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->numCaptures();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegExp_op_1equals(JNIEnv* env, jobject obj, jobject rx)
{
	jboolean xret = (jboolean) ((QRegExp*) QtSupport::getQt(env, obj))->operator==((const QRegExp&)*(const QRegExp*) QtSupport::getQt(env, rx));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegExp_op_1not_1equals(JNIEnv* env, jobject obj, jobject rx)
{
	jboolean xret = (jboolean) ((QRegExp*) QtSupport::getQt(env, obj))->operator!=((const QRegExp&)*(const QRegExp*) QtSupport::getQt(env, rx));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QRegExp_pattern(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QRegExp*) QtSupport::getQt(env, obj))->pattern();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_pos__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->pos();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_pos__I(JNIEnv* env, jobject obj, jint nth)
{
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->pos((int) nth);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_searchRev__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
static QString* _qstring_str = 0;
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->searchRev((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_searchRev__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint offset)
{
static QString* _qstring_str = 0;
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->searchRev((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (int) offset);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_searchRev__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring str, jint offset, jint caretMode)
{
static QString* _qstring_str = 0;
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->searchRev((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (int) offset, (QRegExp::CaretMode) caretMode);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_search__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
static QString* _qstring_str = 0;
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->search((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_search__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint offset)
{
static QString* _qstring_str = 0;
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->search((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (int) offset);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QRegExp_search__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring str, jint offset, jint caretMode)
{
static QString* _qstring_str = 0;
	jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->search((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (int) offset, (QRegExp::CaretMode) caretMode);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_setCaseSensitive(JNIEnv* env, jobject obj, jboolean sensitive)
{
	((QRegExp*) QtSupport::getQt(env, obj))->setCaseSensitive((bool) sensitive);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_setMinimal(JNIEnv* env, jobject obj, jboolean minimal)
{
	((QRegExp*) QtSupport::getQt(env, obj))->setMinimal((bool) minimal);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_setPattern(JNIEnv* env, jobject obj, jstring pattern)
{
static QString* _qstring_pattern = 0;
	((QRegExp*) QtSupport::getQt(env, obj))->setPattern((const QString&)*(QString*) QtSupport::toQString(env, pattern, &_qstring_pattern));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QRegExp_setWildcard(JNIEnv* env, jobject obj, jboolean wildcard)
{
	((QRegExp*) QtSupport::getQt(env, obj))->setWildcard((bool) wildcard);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QRegExp_wildcard(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QRegExp*) QtSupport::getQt(env, obj))->wildcard();
	return xret;
}

