MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / Find

Method Find

scintilla/src/RunStyles.cxx:246–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246int RunStyles::Find(int value, int start) const {
247 if (start < Length()) {
248 int run = start ? RunFromPosition(start) : 0;
249 if (styles->ValueAt(run) == value)
250 return start;
251 run++;
252 while (run < starts->Partitions()) {
253 if (styles->ValueAt(run) == value)
254 return starts->PositionFromPartition(run);
255 run++;
256 }
257 }
258 return -1;
259}
260
261void RunStyles::Check() {
262 if (Length() < 0) {

Callers

nothing calls this directly

Calls 3

PartitionsMethod · 0.80
PositionFromPartitionMethod · 0.80
ValueAtMethod · 0.45

Tested by

no test coverage detected