PythonQtWrapper_QRegExp.cpp
138 lines
| 3.7 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QRegExp.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QStringList> | ||
#include <QVariant> | ||||
#include <qdatastream.h> | ||||
#include <qregexp.h> | ||||
#include <qstringlist.h> | ||||
QRegExp* PythonQtWrapper_QRegExp::new_QRegExp() | ||||
{ | ||||
return new QRegExp(); } | ||||
QRegExp* PythonQtWrapper_QRegExp::new_QRegExp(const QRegExp& rx) | ||||
{ | ||||
return new QRegExp(rx); } | ||||
QRegExp* PythonQtWrapper_QRegExp::new_QRegExp(const QString& pattern, Qt::CaseSensitivity cs, QRegExp::PatternSyntax syntax) | ||||
{ | ||||
return new QRegExp(pattern, cs, syntax); } | ||||
|
r73 | QString PythonQtWrapper_QRegExp::cap(QRegExp* theWrappedObject, int nth) | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->cap(nth)); | ||
|
r13 | } | ||
|
r73 | Qt::CaseSensitivity PythonQtWrapper_QRegExp::caseSensitivity(QRegExp* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->caseSensitivity()); | ||
|
r13 | } | ||
|
r28 | QString PythonQtWrapper_QRegExp::static_QRegExp_escape(const QString& str) | ||
|
r13 | { | ||
|
r73 | return (QRegExp::escape(str)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QRegExp::writeTo(QRegExp* theWrappedObject, QDataStream& out) | ||
|
r13 | { | ||
|
r73 | out << (*theWrappedObject); | ||
|
r13 | } | ||
|
r73 | QString PythonQtWrapper_QRegExp::pattern(QRegExp* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->pattern()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QRegExp::setMinimal(QRegExp* theWrappedObject, bool minimal) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setMinimal(minimal)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QRegExp::operator_equal(QRegExp* theWrappedObject, const QRegExp& rx) const | ||
|
r13 | { | ||
|
r73 | return ( (*theWrappedObject)== rx); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QRegExp::lastIndexIn(QRegExp* theWrappedObject, const QString& str, int offset, QRegExp::CaretMode caretMode) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->lastIndexIn(str, offset, caretMode)); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QRegExp::numCaptures(QRegExp* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->numCaptures()); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QRegExp::setPatternSyntax(QRegExp* theWrappedObject, QRegExp::PatternSyntax syntax) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setPatternSyntax(syntax)); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QRegExp::matchedLength(QRegExp* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->matchedLength()); | ||
|
r13 | } | ||
|
r73 | QRegExp::PatternSyntax PythonQtWrapper_QRegExp::patternSyntax(QRegExp* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->patternSyntax()); | ||
|
r13 | } | ||
|
r73 | QString PythonQtWrapper_QRegExp::errorString(QRegExp* theWrappedObject) | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->errorString()); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QRegExp::setCaseSensitivity(QRegExp* theWrappedObject, Qt::CaseSensitivity cs) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setCaseSensitivity(cs)); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QRegExp::setPattern(QRegExp* theWrappedObject, const QString& pattern) | ||
|
r13 | { | ||
|
r73 | ( theWrappedObject->setPattern(pattern)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QRegExp::isValid(QRegExp* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isValid()); | ||
|
r13 | } | ||
|
r73 | QStringList PythonQtWrapper_QRegExp::capturedTexts(QRegExp* theWrappedObject) | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->capturedTexts()); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QRegExp::isEmpty(QRegExp* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isEmpty()); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QRegExp::isMinimal(QRegExp* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->isMinimal()); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QRegExp::pos(QRegExp* theWrappedObject, int nth) | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->pos(nth)); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QRegExp::exactMatch(QRegExp* theWrappedObject, const QString& str) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->exactMatch(str)); | ||
|
r13 | } | ||
|
r73 | void PythonQtWrapper_QRegExp::readFrom(QRegExp* theWrappedObject, QDataStream& in) | ||
|
r13 | { | ||
|
r73 | in >> (*theWrappedObject); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QRegExp::indexIn(QRegExp* theWrappedObject, const QString& str, int offset, QRegExp::CaretMode caretMode) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->indexIn(str, offset, caretMode)); | ||
|
r13 | } | ||