aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/qregexp_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Added QRegExp.replace(QString, const char*) method.Marcelo Lira2012-03-081-0/+20
The only way to search and replace using QRegExp is using the QString::replace method. Since QString was removed, QRegExp now is useful only to search stuff, but not replace. For this purpose the QRegExp.replace method was added. The first argument is the string that will be operated over, the second argument contains the replacement, and the return value is a new modified Python string. Unit tests and documentation for QRegExp.replace were added as well. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>