| 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 |