src/classify/featdefs.cpp
uint32_t ShortNameToFeatureType(const FEATURE_DEFS_STRUCT &FeatureDefs, const char *ShortName) {
  for (int i = 0; i < FeatureDefs.NumFeatureTypes; i++) {
    if (!strcmp((FeatureDefs.FeatureDesc[i]->ShortName), ShortName)) {
      return static_cast<uint32_t>(i);
    }
  }
  ASSERT_HOST(!"Illegal short name for a feature");
  return 0;
}
/*---------------------------------------------------------------------------*/
/**
 * Search through all features currently defined and return
 * the feature type for the feature with the specified short
 * name.  Trap an error if the specified name is not found.
 *
 * Globals:
 * - none
 *
 * @param FeatureDefs    definitions of feature types/extractors
 * @param ShortName short name of a feature type
 * @return Feature type which corresponds to ShortName.
 */
Search through all features currently defined and return
the feature type for the feature with the specified short
name.  Trap an error if the specified name is not found.

- none

@param FeatureDefs    definitions of feature types/extractors
@param ShortName short name of a feature type
@return Feature type which corresponds to ShortName.
Search through all features currently defined and return the feature type for the feature with the specified short name . Trap an error if the specified name is not found . - none @param FeatureDefs definitions of feature types / extractors @param ShortName short name of a feature type @return Feature type which corresponds to ShortName .
uint32_t ShortNameToFeatureType(const FEATURE_DEFS_STRUCT &FeatureDefs, const char *ShortName) {
  for (int i = 0; i < FeatureDefs.NumFeatureTypes; i++) {
    if (!strcmp((FeatureDefs.FeatureDesc[i]->ShortName), ShortName)) {
      return static_cast<uint32_t>(i);
    }
  }
  ASSERT_HOST(!"Illegal short name for a feature");
  return 0;
}
uint32_t ShortNameToFeatureType ( const FEATURE_DEFS_STRUCT & FeatureDefs , const char * ShortName ) { for ( int i = 0 ; i < FeatureDefs . NumFeatureTypes ; i ++ ) { if ( ! strcmp ( ( FeatureDefs . FeatureDesc [ i ] -> ShortName ) , ShortName ) ) { return static_cast < uint32_t > ( i ) ; } } ASSERT_HOST ( ! " " ) ; return 0 ; }
Search through all features currently defined and return
 the feature type for the feature with the specified short
 name.
Search through all features currently defined and return the feature type for the feature with the specified short name .