* Write a textual representation of FeatureSet to File. * This representation is an integer specifying the number of * features in the set, followed by a newline, followed by * text representations for each feature in the set. * @param FeatureSet feature set to write to File * @param str string to write Feature to * @return none * @note History: Wed May 23 10:06:03 1990, DSJ, Created. */
| 209 | * @note History: Wed May 23 10:06:03 1990, DSJ, Created. |
| 210 | */ |
| 211 | void WriteFeatureSet(FEATURE_SET FeatureSet, STRING* str) { |
| 212 | if (FeatureSet) { |
| 213 | str->add_str_int("", FeatureSet->NumFeatures); |
| 214 | *str += "\n"; |
| 215 | for (int i = 0; i < FeatureSet->NumFeatures; i++) { |
| 216 | WriteFeature(FeatureSet->Features[i], str); |
| 217 | } |
| 218 | } |
| 219 | } /* WriteFeatureSet */ |
| 220 | |
| 221 | /** |
| 222 | * Write a textual representation of FeatureDesc to File |
no test coverage detected