Added QRegExp.replace(QString, const char*) method.
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>
This commit is contained in:
parent
1c6fad9841
commit
edf5b58da8
3 changed files with 56 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ PYSIDE_TEST(qobject_tr_as_instance_test.py)
|
|||
PYSIDE_TEST(qpoint_test.py)
|
||||
PYSIDE_TEST(qprocess_test.py)
|
||||
PYSIDE_TEST(qrect_test.py)
|
||||
PYSIDE_TEST(qregexp_test.py)
|
||||
PYSIDE_TEST(qresource_test.py)
|
||||
PYSIDE_TEST(qsize_test.py)
|
||||
PYSIDE_TEST(qslot_object_test.py)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue