Converts digits 0-9 to thier text equivelent and aggregates this to the supplied chain Returns: None
| Return Type | Function name | Arguments |
|---|---|---|
| void | _speakdigit | (hzChain&,int32_t,) |
Declared and defined in file: hzTextproc.cpp
Function Logic:
Function body:
void _speakdigit (hzChain& Z)int32_t num,
{
// Category: Text Presentation
//
// Converts digits 0-9 to thier text equivelent and aggregates this to the supplied chain
//
// Arguments: 1) Z The chain to add to
// 2) num The digig to convert to word
//
// Returns: None
switch (num)
{
case 0: Z << "zero" ;
case 1: Z << "one" ;
case 2: Z << "two" ;
case 3: Z << "three" ;
case 4: Z << "four" ;
case 5: Z << "five" ;
case 6: Z << "six" ;
case 7: Z << "seven" ;
case 8: Z << "eight" ;
case 9: Z << "nine" ;
}
}