Qt 3 Support Members for QRegExpThe 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. Public Functions
Member Function DocumentationQRegExp::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 QRegExp rx("*.txt", Qt::CaseInsensitive, QRegExp::Wildcard); bool QRegExp::caseSensitive () constUse caseSensitivity() instead. See also setCaseSensitive(). bool QRegExp::minimal () constUse isMinimal() instead. See also setMinimal(). int QRegExp::numCaptures () constReturns the number of captures contained in the regular expression. See also captureCount(). int QRegExp::search ( const QString & str, int from = 0, CaretMode caretMode = CaretAtZero ) constUse indexIn() instead. int QRegExp::searchRev ( const QString & str, int from = -1, CaretMode caretMode = CaretAtZero ) constUse 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 () constUse 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().
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |