Count all occurrences in the document
| 106 | |
| 107 | // Count all occurrences in the document |
| 108 | int Finder::count() |
| 109 | { |
| 110 | int total = 0; |
| 111 | |
| 112 | if (text.length() > 0) { |
| 113 | forEachMatch([&](int start, int end) { |
| 114 | Q_UNUSED(start); |
| 115 | total++; |
| 116 | return end; |
| 117 | }); |
| 118 | } |
| 119 | |
| 120 | return total; |
| 121 | } |
| 122 | |
| 123 | Sci_CharacterRange Finder::replaceSelectionIfMatch(const QString &replaceText) |
| 124 | { |