src/ccutil/tessdatamanager.cpp
bool TessdataManager::GetComponent(TessdataType type, TFile *fp) const {
  ASSERT_HOST(is_loaded_);
  if (entries_[type].empty()) {
    return false;
  }
  fp->Open(&entries_[type][0], entries_[type].size());
  fp->set_swap(swap_);
  return true;
}
// As non-const version except it can't load the component if not already
// loaded.
As non-const version except it can't load the component if not already
loaded.
As non - const version except it can ' t load the component if not already loaded .
bool TessdataManager::GetComponent(TessdataType type, TFile *fp) const {
  ASSERT_HOST(is_loaded_);
  if (entries_[type].empty()) {
    return false;
  }
  fp->Open(&entries_[type][0], entries_[type].size());
  fp->set_swap(swap_);
  return true;
}
bool TessdataManager :: GetComponent ( TessdataType type , TFile * fp ) const { ASSERT_HOST ( is_loaded_ ) ; if ( entries_ [ type ] . empty ( ) ) { return false ; } fp -> Open ( & entries_ [ type ] [ 0 ] , entries_ [ type ] . size ( ) ) ; fp -> set_swap ( swap_ ) ; return true ; }
As non-const version except it can't load the component if not already
loaded.
As non - const version except it can ' t load the component if not already loaded .