src/classify/featdefs.cpp
void WriteCharDescription(const FEATURE_DEFS_STRUCT &FeatureDefs, CHAR_DESC_STRUCT *CharDesc, std::string &str) {
  int NumSetsToWrite = 0;

  for (size_t Type = 0; Type < CharDesc->NumFeatureSets; Type++) {
    if (CharDesc->FeatureSets[Type]) {
      NumSetsToWrite++;
    }
  }

  str += " " + std::to_string(NumSetsToWrite);
  str += "\n";
  for (size_t Type = 0; Type < CharDesc->NumFeatureSets; Type++) {
    if (CharDesc->FeatureSets[Type]) {
      str += FeatureDefs.FeatureDesc[Type]->ShortName;
      str += " ";
      WriteFeatureSet(CharDesc->FeatureSets[Type], str);
    }
  }
}
/*---------------------------------------------------------------------------*/
/**
 * Appends a textual representation of CharDesc to str.
 * The format used is to write out the number of feature
 * sets which will be written followed by a representation of
 * each feature set.
 *
 * Each set starts with the short name for that feature followed
 * by a description of the feature set.  Feature sets which are
 * not present are not written.
 *
 * @param FeatureDefs    definitions of feature types/extractors
 * @param str            string to append CharDesc to
 * @param CharDesc       character description to write to File
 */
Appends a textual representation of CharDesc to str.
The format used is to write out the number of feature
sets which will be written followed by a representation of
each feature set.

Each set starts with the short name for that feature followed
by a description of the feature set.  Feature sets which are
not present are not written.

@param FeatureDefs    definitions of feature types/extractors
@param str            string to append CharDesc to
@param CharDesc       character description to write to File
Appends a textual representation of CharDesc to str . The format used is to write out the number of feature sets which will be written followed by a representation of each feature set . Each set starts with the short name for that feature followed by a description of the feature set . Feature sets which are not present are not written . @param FeatureDefs definitions of feature types / extractors @param str string to append CharDesc to @param CharDesc character description to write to File
void WriteCharDescription(const FEATURE_DEFS_STRUCT &FeatureDefs, CHAR_DESC_STRUCT *CharDesc, std::string &str) {
  int NumSetsToWrite = 0;
  for (size_t Type = 0; Type < CharDesc->NumFeatureSets; Type++) {
    if (CharDesc->FeatureSets[Type]) {
      NumSetsToWrite++;
    }
  }
  str += " " + std::to_string(NumSetsToWrite);
  str += "\n";
  for (size_t Type = 0; Type < CharDesc->NumFeatureSets; Type++) {
    if (CharDesc->FeatureSets[Type]) {
      str += FeatureDefs.FeatureDesc[Type]->ShortName;
      str += " ";
      WriteFeatureSet(CharDesc->FeatureSets[Type], str);
    }
  }
}
void WriteCharDescription ( const FEATURE_DEFS_STRUCT & FeatureDefs , CHAR_DESC_STRUCT * CharDesc , std :: string & str ) { int NumSetsToWrite = 0 ; for ( size_t Type = 0 ; Type < CharDesc -> NumFeatureSets ; Type ++ ) { if ( CharDesc -> FeatureSets [ Type ] ) { NumSetsToWrite ++ ; } } str += " " + std :: to_string ( NumSetsToWrite ) ; str += " \n " ; for ( size_t Type = 0 ; Type < CharDesc -> NumFeatureSets ; Type ++ ) { if ( CharDesc -> FeatureSets [ Type ] ) { str += FeatureDefs . FeatureDesc [ Type ] -> ShortName ; str += " " ; WriteFeatureSet ( CharDesc -> FeatureSets [ Type ] , str ) ; } } }
Appends a textual representation of CharDesc to str.
Appends a textual representation of CharDesc to str .