|
|
#include "PythonQtWrapper_QRegExp.h"
|
|
|
|
|
|
#include <PythonQtSignalReceiver.h>
|
|
|
#include <PythonQtMethodInfo.h>
|
|
|
#include <PythonQtConversion.h>
|
|
|
#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); }
|
|
|
|
|
|
QString PythonQtWrapper_QRegExp::cap(QRegExp* theWrappedObject, int nth)
|
|
|
{
|
|
|
return ( theWrappedObject->cap(nth));
|
|
|
}
|
|
|
|
|
|
Qt::CaseSensitivity PythonQtWrapper_QRegExp::caseSensitivity(QRegExp* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->caseSensitivity());
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QRegExp::static_QRegExp_escape(const QString& str)
|
|
|
{
|
|
|
return (QRegExp::escape(str));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QRegExp::writeTo(QRegExp* theWrappedObject, QDataStream& out)
|
|
|
{
|
|
|
out << (*theWrappedObject);
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QRegExp::pattern(QRegExp* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->pattern());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QRegExp::setMinimal(QRegExp* theWrappedObject, bool minimal)
|
|
|
{
|
|
|
( theWrappedObject->setMinimal(minimal));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QRegExp::operator_equal(QRegExp* theWrappedObject, const QRegExp& rx) const
|
|
|
{
|
|
|
return ( (*theWrappedObject)== rx);
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QRegExp::lastIndexIn(QRegExp* theWrappedObject, const QString& str, int offset, QRegExp::CaretMode caretMode) const
|
|
|
{
|
|
|
return ( theWrappedObject->lastIndexIn(str, offset, caretMode));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QRegExp::numCaptures(QRegExp* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->numCaptures());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QRegExp::setPatternSyntax(QRegExp* theWrappedObject, QRegExp::PatternSyntax syntax)
|
|
|
{
|
|
|
( theWrappedObject->setPatternSyntax(syntax));
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QRegExp::matchedLength(QRegExp* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->matchedLength());
|
|
|
}
|
|
|
|
|
|
QRegExp::PatternSyntax PythonQtWrapper_QRegExp::patternSyntax(QRegExp* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->patternSyntax());
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QRegExp::errorString(QRegExp* theWrappedObject)
|
|
|
{
|
|
|
return ( theWrappedObject->errorString());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QRegExp::setCaseSensitivity(QRegExp* theWrappedObject, Qt::CaseSensitivity cs)
|
|
|
{
|
|
|
( theWrappedObject->setCaseSensitivity(cs));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QRegExp::setPattern(QRegExp* theWrappedObject, const QString& pattern)
|
|
|
{
|
|
|
( theWrappedObject->setPattern(pattern));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QRegExp::isValid(QRegExp* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->isValid());
|
|
|
}
|
|
|
|
|
|
QStringList PythonQtWrapper_QRegExp::capturedTexts(QRegExp* theWrappedObject)
|
|
|
{
|
|
|
return ( theWrappedObject->capturedTexts());
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QRegExp::isEmpty(QRegExp* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->isEmpty());
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QRegExp::isMinimal(QRegExp* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->isMinimal());
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QRegExp::pos(QRegExp* theWrappedObject, int nth)
|
|
|
{
|
|
|
return ( theWrappedObject->pos(nth));
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QRegExp::exactMatch(QRegExp* theWrappedObject, const QString& str) const
|
|
|
{
|
|
|
return ( theWrappedObject->exactMatch(str));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QRegExp::readFrom(QRegExp* theWrappedObject, QDataStream& in)
|
|
|
{
|
|
|
in >> (*theWrappedObject);
|
|
|
}
|
|
|
|
|
|
int PythonQtWrapper_QRegExp::indexIn(QRegExp* theWrappedObject, const QString& str, int offset, QRegExp::CaretMode caretMode) const
|
|
|
{
|
|
|
return ( theWrappedObject->indexIn(str, offset, caretMode));
|
|
|
}
|
|
|
|
|
|
|