str += " ";
}
}
-
return(str);
}
+
+// Convert an integer to spoken digits
+string ConvertNumToSpokenDigits(int n) {
+ char buf[12]; // should be big enough!!
+ sprintf(buf, "%i", n);
+ string tempstr1 = buf;
+ return(ConvertNumToSpokenDigits(tempstr1));
+}
+
+
// Convert a 2 digit rwy number to a spoken-style string
string ConvertRwyNumToSpokenString(int n) {
string nums[10] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
result = globals->get_airports()->search( id );
if ( result.id.empty() ) {
SG_LOG( SG_GENERAL, SG_ALERT,
- "Failed to find " << id << " in simple.apt.gz" );
+ "Failed to find " << id << " in basic.dat.gz" );
return false;
}
} else {