Qt Code:
rx.setMinimal(true); int s = -1; while((s = rx.indexIn(str, s+1))>=0){ str.replace(s, rx.cap(0).length(), rx.cap(1).toUpper()); s+= rx.cap(1).length(); }To copy to clipboard, switch view to plain text mode
Qt Code:
rx.setMinimal(true); int s = -1; while((s = rx.indexIn(str, s+1))>=0){ str.replace(s, rx.cap(0).length(), rx.cap(1).toUpper()); s+= rx.cap(1).length(); }To copy to clipboard, switch view to plain text mode
Lykurg (4th March 2008)
Bookmarks