Hi All,
Is there any method in Qt like SpanIncluding(LPCTSTR lpszCharSet ) which is in CString ?
which will extracts characters from the string, starting with the first character, which are in
the set of characters identified by lpszCharSet ?
Hi All,
Is there any method in Qt like SpanIncluding(LPCTSTR lpszCharSet ) which is in CString ?
which will extracts characters from the string, starting with the first character, which are in
the set of characters identified by lpszCharSet ?
Thanks,
Rajesh.S
QString & QString::remove ( const QRegExp & rx )
This is an overloaded member function, provided for convenience.
Removes every occurrence of the regular expression rx in the string, and returns a reference to the string. For example:
QString r = "Telephone";
r.remove(QRegExp("[aeiou]."));
// r == "The"
See also indexOf(), lastIndexOf(), and replace().
The correct copy of your function is this:
Qt Code:
// r == "eeoe"To copy to clipboard, switch view to plain text mode
Thank you for your valuable reply
Thanks,
Rajesh.S
Bookmarks