Examine rows[start, end) and try to determine if an existing non-centered paragraph model would fit them perfectly. If so, return a pointer to it. If not, return NULL.
| 1237 | // paragraph model would fit them perfectly. If so, return a pointer to it. |
| 1238 | // If not, return NULL. |
| 1239 | const ParagraphModel *ParagraphTheory::Fits( |
| 1240 | const GenericVector<RowScratchRegisters> *rows, int start, int end) const { |
| 1241 | for (int m = 0; m < models_->size(); m++) { |
| 1242 | const ParagraphModel *model = (*models_)[m]; |
| 1243 | if (model->justification() != JUSTIFICATION_CENTER && |
| 1244 | RowsFitModel(rows, start, end, model)) |
| 1245 | return model; |
| 1246 | } |
| 1247 | return NULL; |
| 1248 | } |
| 1249 | |
| 1250 | void ParagraphTheory::NonCenteredModels(SetOfModels *models) { |
| 1251 | for (int m = 0; m < models_->size(); m++) { |
nothing calls this directly
no test coverage detected