Compatibility Members for QRegExp
The following members of class QRegExpare part of the Qt compatibility layer. We advise against using them in new code.
Public Functions
QRegExp(const QString & pattern, bool cs, bool wildcard = false) | |
bool | caseSensitive() const |
bool | minimal() const |
int | search(const QString & str, int from = 0, CaretMode caretMode = CaretAtZero) const |
int | searchRev(const QString & str, int from = -1, CaretMode caretMode = CaretAtZero) const |
void | setCaseSensitive(bool sensitive) |
void | setWildcard(bool wildcard) |
bool | wildcard() const |
Member Function Documentation
QRegExp::QRegExp(const QString & pattern, bool cs, bool wildcard = false)
Use another constructor instead.
For example, if you have code like
QRegExp rx("*.txt", false, true);
you can rewrite it as
bool QRegExp::caseSensitive() const
Use caseSensitivity() instead.
See also setCaseSensitive().
bool QRegExp::minimal() const
Use isMinimal() instead.
See also setMinimal().
int QRegExp::search(const QString & str, int from = 0, CaretMode caretMode = CaretAtZero) const
Use indexIn() instead.
int QRegExp::searchRev(const QString & str, int from = -1, CaretMode caretMode = CaretAtZero) const
Use lastIndexIn() instead.
void QRegExp::setCaseSensitive(bool sensitive)
Use setCaseSensitivity() instead.
See also caseSensitive().
void QRegExp::setWildcard(bool wildcard)
Use setPatternSyntax() instead.
For example, if you have code like
rx.setWildcard(wc);
you can rewrite it as
rx.setPatternSyntax(wc ? QRegExp::Wildcard : QRegExp::RegExp);
See also wildcard().
bool QRegExp::wildcard() const
Use patternSyntax() instead.
For example, if you have code like
bool wc = rx.wildcard();
you can rewrite it as
bool wc = (rx.patternSyntax() == QRegExp::Wildcard);
See also setWildcard().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.