MCPcopy Create free account
hub / github.com/SpartanJ/eepp / calcScore

Method calcScore

src/eepp/ui/doc/textformat.cpp:311–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 }
310
311 void calcScore() {
312 score = ( ( 2.5f * numWhitespace + numPlainAscii - 100.f * numInvalidPoints() -
313 50.f * numControl + 5.f * numExtended + 2.5f * num16bytes ) *
314 ( count16b ? ( num16bytes > 0 ? 1 : 0 ) : 1 ) ) *
315 ooNumPoints;
316 }
317
318 bool allValidPoints() const { return numPoints == numValidPoints; }
319

Callers 1

scanTextFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected