The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
QRegExp ( const QString & pattern, bool cs, bool wildcard = false ) | |
bool | caseSensitive () const |
bool | minimal () const |
int | numCaptures () 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 |
Use another constructor instead.
For example, if you have code like
QRegExp rx("*.txt", false, true);
you can rewrite it as
QRegExp rx("*.txt", Qt::CaseInsensitive, QRegExp::Wildcard);
Use caseSensitivity() instead.
See also setCaseSensitive().
Use isMinimal() instead.
See also setMinimal().
Returns the number of captures contained in the regular expression.
See also captureCount().
Use indexIn() instead.
Use lastIndexIn() instead.
Use setCaseSensitivity() instead.
See also caseSensitive().
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().
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().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.