diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QRegExp.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QRegExp.cpp | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/qtjava/javalib/qtjava/QRegExp.cpp b/qtjava/javalib/qtjava/QRegExp.cpp index a7cfb62f..34a68546 100644 --- a/qtjava/javalib/qtjava/QRegExp.cpp +++ b/qtjava/javalib/qtjava/QRegExp.cpp @@ -1,7 +1,7 @@ //Auto-generated by kalyptus. DO NOT EDIT. -#include <qregexp.h> -#include <qstring.h> -#include <qstringlist.h> +#include <tqregexp.h> +#include <tqstring.h> +#include <tqstringlist.h> #include <qtjava/QtSupport.h> #include <qtjava/QRegExp.h> @@ -9,42 +9,42 @@ 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() : TQRegExp() {}; + QRegExpJBridge(const TQString& arg1,bool arg2,bool arg3) : TQRegExp(arg1,arg2,arg3) {}; + QRegExpJBridge(const TQString& arg1,bool arg2) : TQRegExp(arg1,arg2) {}; + QRegExpJBridge(const TQString& arg1) : TQRegExp(arg1) {}; + QRegExpJBridge(const TQRegExp& arg1) : TQRegExp(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(); + TQString _qstring; + _qstring = ((TQRegExp*) 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); + TQString _qstring; + _qstring = ((TQRegExp*) 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); + TQStringList _qlist; + _qlist = ((TQRegExp*) QtSupport::getQt(env, obj))->capturedTexts(); + return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist); } JNIEXPORT jboolean JNICALL Java_org_kde_qt_QRegExp_caseSensitive(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((QRegExp*) QtSupport::getQt(env, obj))->caseSensitive(); + jboolean xret = (jboolean) ((TQRegExp*) QtSupport::getQt(env, obj))->caseSensitive(); return xret; } @@ -58,26 +58,26 @@ Java_org_kde_qt_QRegExp_dispose(JNIEnv* env, jobject obj) JNIEXPORT jstring JNICALL Java_org_kde_qt_QRegExp_errorString(JNIEnv* env, jobject obj) { - QString _qstring; - _qstring = ((QRegExp*) QtSupport::getQt(env, obj))->errorString(); + TQString _qstring; + _qstring = ((TQRegExp*) 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; + TQString _qstring; (void) cls; -static QString* _qstring_str = 0; - _qstring = QRegExpJBridge::escape((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str)); +static TQString* _qstring_str = 0; + _qstring = QRegExpJBridge::escape((const TQString&)*(TQString*) 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)); +static TQString* _qstring_str = 0; + jboolean xret = (jboolean) ((TQRegExp*) QtSupport::getQt(env, obj))->exactMatch((const TQString&)*(TQString*) QtSupport::toQString(env, str, &_qstring_str)); return xret; } @@ -85,7 +85,7 @@ JNIEXPORT void JNICALL Java_org_kde_qt_QRegExp_finalize(JNIEnv* env, jobject obj) { if (QtSupport::allocatedInJavaWorld(env, obj)) { - delete (QRegExp*)QtSupport::getQt(env, obj); + delete (TQRegExp*)QtSupport::getQt(env, obj); QtSupport::setQt(env, obj, 0); } return; @@ -100,39 +100,39 @@ Java_org_kde_qt_QRegExp_isDisposed(JNIEnv* env, jobject obj) JNIEXPORT jboolean JNICALL Java_org_kde_qt_QRegExp_isEmpty(JNIEnv* env, jobject obj) { - jboolean xret = (jboolean) ((QRegExp*) QtSupport::getQt(env, obj))->isEmpty(); + jboolean xret = (jboolean) ((TQRegExp*) 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(); + jboolean xret = (jboolean) ((TQRegExp*) 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)); +static TQString* _qstring_str = 0; + jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->match((const TQString&)*(TQString*) 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); +static TQString* _qstring_str = 0; + jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->match((const TQString&)*(TQString*) 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; +static TQString* _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); + jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->match((const TQString&)*(TQString*) QtSupport::toQString(env, str, &_qstring_str), (int) index, (int*) _int_len); env->SetIntArrayRegion(len, 0, 1, (jint *) _int_len); return xret; } @@ -140,9 +140,9 @@ static QString* _qstring_str = 0; 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; +static TQString* _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); + jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->match((const TQString&)*(TQString*) QtSupport::toQString(env, str, &_qstring_str), (int) index, (int*) _int_len, (bool) indexIsStart); env->SetIntArrayRegion(len, 0, 1, (jint *) _int_len); return xret; } @@ -150,14 +150,14 @@ static QString* _qstring_str = 0; JNIEXPORT jint JNICALL Java_org_kde_qt_QRegExp_matchedLength(JNIEnv* env, jobject obj) { - jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->matchedLength(); + jint xret = (jint) ((TQRegExp*) 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(); + jboolean xret = (jboolean) ((TQRegExp*) QtSupport::getQt(env, obj))->minimal(); return xret; } @@ -174,9 +174,9 @@ Java_org_kde_qt_QRegExp_newQRegExp__(JNIEnv* env, jobject obj) JNIEXPORT void JNICALL Java_org_kde_qt_QRegExp_newQRegExp__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring pattern) { -static QString* _qstring_pattern = 0; +static TQString* _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::setQt(env, obj, new QRegExpJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, pattern, &_qstring_pattern))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -185,9 +185,9 @@ static QString* _qstring_pattern = 0; 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; +static TQString* _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::setQt(env, obj, new QRegExpJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, pattern, &_qstring_pattern), (bool) caseSensitive)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -196,9 +196,9 @@ static QString* _qstring_pattern = 0; 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; +static TQString* _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::setQt(env, obj, new QRegExpJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, pattern, &_qstring_pattern), (bool) caseSensitive, (bool) wildcard)); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -208,7 +208,7 @@ 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::setQt(env, obj, new QRegExpJBridge((const TQRegExp&)*(const TQRegExp*) QtSupport::getQt(env, rx))); QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); } return; @@ -217,127 +217,127 @@ Java_org_kde_qt_QRegExp_newQRegExp__Lorg_kde_qt_QRegExp_2(JNIEnv* env, jobject o JNIEXPORT jint JNICALL Java_org_kde_qt_QRegExp_numCaptures(JNIEnv* env, jobject obj) { - jint xret = (jint) ((QRegExp*) QtSupport::getQt(env, obj))->numCaptures(); + jint xret = (jint) ((TQRegExp*) 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)); + jboolean xret = (jboolean) ((TQRegExp*) QtSupport::getQt(env, obj))->operator==((const TQRegExp&)*(const TQRegExp*) 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)); + jboolean xret = (jboolean) ((TQRegExp*) QtSupport::getQt(env, obj))->operator!=((const TQRegExp&)*(const TQRegExp*) 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(); + TQString _qstring; + _qstring = ((TQRegExp*) 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(); + jint xret = (jint) ((TQRegExp*) 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); + jint xret = (jint) ((TQRegExp*) 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)); +static TQString* _qstring_str = 0; + jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->searchRev((const TQString&)*(TQString*) 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); +static TQString* _qstring_str = 0; + jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->searchRev((const TQString&)*(TQString*) 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); +static TQString* _qstring_str = 0; + jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->searchRev((const TQString&)*(TQString*) QtSupport::toQString(env, str, &_qstring_str), (int) offset, (TQRegExp::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)); +static TQString* _qstring_str = 0; + jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->search((const TQString&)*(TQString*) 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); +static TQString* _qstring_str = 0; + jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->search((const TQString&)*(TQString*) 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); +static TQString* _qstring_str = 0; + jint xret = (jint) ((TQRegExp*) QtSupport::getQt(env, obj))->search((const TQString&)*(TQString*) QtSupport::toQString(env, str, &_qstring_str), (int) offset, (TQRegExp::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); + ((TQRegExp*) 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); + ((TQRegExp*) 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)); +static TQString* _qstring_pattern = 0; + ((TQRegExp*) QtSupport::getQt(env, obj))->setPattern((const TQString&)*(TQString*) 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); + ((TQRegExp*) 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(); + jboolean xret = (jboolean) ((TQRegExp*) QtSupport::getQt(env, obj))->wildcard(); return xret; } |