src/ccstruct/pageres.cpp
void WERD_RES::ReplaceBestChoice(WERD_CHOICE *choice) {
  best_choice = choice;
  RebuildBestState();
  SetupBoxWord();
  // Make up a fake reject map of the right length to keep the
  // rejection pass happy.
  reject_map.initialise(best_state.size());
  done = tess_accepted = tess_would_adapt = true;
  SetScriptPositions();
}
// Replace the best choice and rebuild box word.
// choice must be from the current best_choices list.
Replace the best choice and rebuild box word.
choice must be from the current best_choices list.
Replace the best choice and rebuild box word . choice must be from the current best_choices list .
void WERD_RES::ReplaceBestChoice(WERD_CHOICE *choice) {
  best_choice = choice;
  RebuildBestState();
  SetupBoxWord();
  reject_map.initialise(best_state.size());
  done = tess_accepted = tess_would_adapt = true;
  SetScriptPositions();
}
void WERD_RES :: ReplaceBestChoice ( WERD_CHOICE * choice ) { best_choice = choice ; RebuildBestState ( ) ; SetupBoxWord ( ) ; reject_map . initialise ( best_state . size ( ) ) ; done = tess_accepted = tess_would_adapt = true ; SetScriptPositions ( ) ; }
Replace the best choice and rebuild box word.
Replace the best choice and rebuild box word .
// Make up a fake reject map of the right length to keep the // rejection pass happy.