Translates a number into englich words.
More...
#include <NumberToText.h>
|
audio_tools::Vector< const char * > & | say (double value, int decimals=2) |
| converts a real number to it's text representation (with the indicated number of digits)
|
|
audio_tools::Vector< const char * > & | say (int64_t wholeNumber) |
|
audio_tools::Vector< const char * > & | say (const char *wholeNumber, const char *decimals="") |
| converts a number to it's text representation
|
|
audio_tools::Vector< const char * > & | allTexts () |
| provides all texts
|
|
virtual audio_tools::Vector< const char * > & | allTexts ()=0 |
|
virtual void | registerCallback (void(*ptr)(audio_tools::Vector< const char * > words, void *refx), void *ref) |
|
void | printCSV (Print &out) |
|
|
void | add (const char *str) |
|
void | convertDecimals (const char *decimals) |
|
void | convert (const char *strValue) |
|
void | convert (int64_t value) |
|
|
audio_tools::Vector< const char * > | result |
|
const char * | first [20] |
|
const char * | second [10] |
|
const char * | third [7] = {"AND","DOT","MINUS", "HUNDRED", "THOUSAND", "MILLION","BILLION"} |
|
const int | AND = 0 |
|
const int | DOT = 1 |
|
const int | MINUS = 2 |
|
const int | HUNDRED = 3 |
|
const int | THOUSAND = 4 |
|
const int | MILLION = 5 |
|
const int | BILLION = 6 |
|
void(* | callback )(audio_tools::Vector< const char * > word, void *ref) = nullptr |
|
void * | reference = nullptr |
|
Translates a number into englich words.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ allTexts()
audio_tools::Vector< const char * > & simple_tts::NumberToText::allTexts |
( |
| ) |
|
|
inlinevirtual |
◆ first
const char* simple_tts::NumberToText::first[20] |
|
protected |
Initial value:= {"ZERO", "ONE", "TWO", "THREE",
"FOUR", "FIVE", "SIX", "SEVEN",
"EIGHT", "NINE", "TEN", "ELEVEN",
"TWELVE", "THIRTEEN", "FOURTEEN", "FIFTEEN",
"SIXTEEN", "SEVENTEEN", "EIGHTEEN", "NINETEEN"}
◆ second
const char* simple_tts::NumberToText::second[10] |
|
protected |
Initial value:= {"", "TEN", "TWENTY", "THIRTY", "FORTY",
"FIFTY", "SIXTY", "SEVENTY", "EIGHTY", "NINETY"}
The documentation for this class was generated from the following file: