MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / count

Method count

src/Finder.cpp:108–121  ·  view source on GitHub ↗

Count all occurrences in the document

Source from the content-addressed store, hash-verified

106
107// Count all occurrences in the document
108int 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
123Sci_CharacterRange Finder::replaceSelectionIfMatch(const QString &replaceText)
124{

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected