| 28 | } |
| 29 | |
| 30 | static int TrailingUnicharsToChopped(WERD_RES *word, int num_unichars) { |
| 31 | int num_chopped = 0; |
| 32 | for (int i = 0; i < num_unichars; i++) |
| 33 | num_chopped += word->best_state[word->best_state.size() - 1 - i]; |
| 34 | return num_chopped; |
| 35 | } |
| 36 | |
| 37 | |
| 38 | namespace tesseract { |
no test coverage detected