Rename number to number_words

This is to clarify that it returns the word forms of numbers, not
numbers themselves.
This commit is contained in:
Misa
2021-09-25 15:08:13 -07:00
parent 409f7b078f
commit 38b2213745
5 changed files with 25 additions and 25 deletions

View File

@@ -201,7 +201,7 @@ std::string UtilityClass::timestring( int t )
return tempstring;
}
std::string UtilityClass::number( int _t )
std::string UtilityClass::number_words( int _t )
{
static const std::string ones_place[] = {"One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};
static const std::string tens_place[] = {"Ten", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"};