Lines Matching refs:Score
55 struct Score {
56 int score;
84 Score maxScore = { 0, 0 };
87 Score currentScore = { 0, i };
93 currentScore.score += 10 - pattern.width() + current.width();
95 currentScore.score += 10 - current.width();
99 currentScore.score += 10 + pattern.width() - current.width();
101 currentScore.score += current.width();
104 currentScore.score *= 1002;
110 currentScore.score += 1001;
115 // The 'closer' to the target weight, the higher the score.
118 currentScore.score += 1000;
124 currentScore.score += 500;
128 currentScore.score += 1000 - pattern.weight() + current.weight();
130 currentScore.score += 1000 - current.weight();
134 currentScore.score += 1000 + pattern.weight() - current.weight();
136 currentScore.score += current.weight();
140 if (currentScore.score > maxScore.score) {