Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
6.2.6
-
None
Description
It would be nice if the QString::replace methods had an additional optional output parameter to get the number of replacements, or a bool param to know if there is at least one match.
Now, if I need to know if the string has changed, I have to call the QString::indexOf method before. This is not an optimal solution, because it requires 2 scans of the string.