src/ccstruct/pageres.cpp
bool WERD_RES::LogNewRawChoice(WERD_CHOICE *word_choice) {
  if (raw_choice == nullptr || word_choice->rating() < raw_choice->rating()) {
    delete raw_choice;
    raw_choice = new WERD_CHOICE(*word_choice);
    raw_choice->set_permuter(TOP_CHOICE_PERM);
    return true;
  }
  return false;
}
// Saves a copy of the word_choice if it has the best unadjusted rating.
// Returns true if the word_choice was the new best.
Saves a copy of the word_choice if it has the best unadjusted rating.
Returns true if the word_choice was the new best.
Saves a copy of the word_choice if it has the best unadjusted rating . Returns true if the word_choice was the new best .
bool WERD_RES::LogNewRawChoice(WERD_CHOICE *word_choice) {
  if (raw_choice == nullptr || word_choice->rating() < raw_choice->rating()) {
    delete raw_choice;
    raw_choice = new WERD_CHOICE(*word_choice);
    raw_choice->set_permuter(TOP_CHOICE_PERM);
    return true;
  }
  return false;
}
bool WERD_RES :: LogNewRawChoice ( WERD_CHOICE * word_choice ) { if ( raw_choice == nullptr || word_choice -> rating ( ) < raw_choice -> rating ( ) ) { delete raw_choice ; raw_choice = new WERD_CHOICE ( * word_choice ) ; raw_choice -> set_permuter ( TOP_CHOICE_PERM ) ; return true ; } return false ; }
Saves a copy of the word_choice if it has the best unadjusted rating.
Saves a copy of the word_choice if it has the best unadjusted rating .