//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqregexp.h>
#include <tqstring.h>
#include <tqstringlist.h>

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

class TQRegExpJBridge : public TQRegExp
{
public:
	TQRegExpJBridge() : TQRegExp() {};
	TQRegExpJBridge(const TQString& arg1,bool arg2,bool arg3) : TQRegExp(arg1,arg2,arg3) {};
	TQRegExpJBridge(const TQString& arg1,bool arg2) : TQRegExp(arg1,arg2) {};
	TQRegExpJBridge(const TQString& arg1) : TQRegExp(arg1) {};
	TQRegExpJBridge(const TQRegExp& arg1) : TQRegExp(arg1) {};
	~TQRegExpJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QRegExp_cap__(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQRegExp*) QtSupport::getQt(env, obj))->cap();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QRegExp_cap__I(JNIEnv* env, jobject obj, jint nth)
{
	TQString  _qstring;
	_qstring = ((TQRegExp*) QtSupport::getQt(env, obj))->cap((int) nth);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QRegExp_capturedTexts(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TQRegExp*) QtSupport::getQt(env, obj))->capturedTexts();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QRegExp_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QRegExp_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QRegExp_errorString(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQRegExp*) QtSupport::getQt(env, obj))->errorString();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QRegExp_escape(JNIEnv* env, jclass cls, jstring str)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_str = 0;
	_qstring = TQRegExpJBridge::escape((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QRegExp_exactMatch(JNIEnv* env, jobject obj, jstring str)
{
static TQString* _qstring_str = 0;
	jboolean xret = (jboolean) ((TQRegExp*) QtSupport::getQt(env, obj))->exactMatch((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return xret;
}

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

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

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QRegExp_match__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
static TQString* _qstring_str = 0;
	jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->match((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return xret;
}

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QRegExp_match__Ljava_lang_String_2I_3IZ(JNIEnv* env, jobject obj, jstring str, jint index, jintArray len, jboolean indexIsStart)
{
static TQString* _qstring_str = 0;
	int* _int_len = QtSupport::toIntPtr(env, len);
	jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->match((const TQString&)*(TQString*) QtSupport::toTQString(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_trinitydesktop_qt_QRegExp_matchedLength(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->matchedLength();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QRegExp_newTQRegExp__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring pattern)
{
static TQString* _qstring_pattern = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQRegExpJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QRegExp_pattern(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQRegExp*) QtSupport::getQt(env, obj))->pattern();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QRegExp_searchRev__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
static TQString* _qstring_str = 0;
	jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->searchRev((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return xret;
}

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QRegExp_search__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
static TQString* _qstring_str = 0;
	jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->search((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QRegExp_setPattern(JNIEnv* env, jobject obj, jstring pattern)
{
static TQString* _qstring_pattern = 0;
	((TQRegExp*) QtSupport::getQt(env, obj))->setPattern((const TQString&)*(TQString*) QtSupport::toTQString(env, pattern, &_qstring_pattern));
	return;
}

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

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

