Details
-
Suggestion
-
Resolution: Out of scope
-
P5: Not important
-
None
-
5.0.1
-
None
-
Mac OS 10.8.3
Description
Currently it is possible to tell the staring position of a QRegExp match group:
rx.pos(nth);
and the only way to find out the length of the captured text is to:
rx.cap(nth).length();
If I understand it correctly, this copies the captured characters to create a QString which is immediately thrown away after calling length().
I have not done any performance measurements but perhaps it would be useful to expose the length of match directly:
rx.len(int nth);
or to expose the end of the matched text group:
rx.end(int nth);