Converts the supplied int32_t number (arg 2) to the textual equivelent and aggregates this to the supplied chain Returns: None

Return TypeFunction nameArguments
void_speakno(hzChain&,int32_t,)

Declared and defined in file: hzTextproc.cpp

Function Logic:

0:START 1:unknown 2:num 3:h h num items 4:unknown 5:items 6:items 7: No text 8:unknown 9:num 10:t t num 11:t 12:2 13:items 14:3 15:items 16:4 17:items 18:5 19:items 20:6 21:items 22:7 23:items 24:8 25:items 26:9 27:items 28:unknown 29: No text 30:unknown 31:num 32:10 33:items 34:11 35:items 36:12 37:items 38:13 39:items 40:14 41:items 42:15 43:items 44:16 45:items 46:17 47:items 48:18 49:items 50:19 51:items 52:unknown 53:items 54: No text

Function body:

void _speakno (hzChain& Z)int32_t num, 
{
   //  Category: Text Presentation
   //  
   //  Converts the supplied int32_t number (arg 2) to the textual 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
   int32_t h ;     //  Hundreds
   int32_t t ;     //  Tens
   if (num > 99)
   {
       h = num / 100;
       num -= (h * 100);
       _speakdigit(Z, h) ;
       if (num)
           Z << " hundred and " ;
       else
       {
           Z << " hundred" ;
           return ;
       }
   }
   if (num > 19)
   {
       t = num / 10;
       num -= (t * 10);
       switch  (t)
       {
       case 2: Z << "twenty" ;
       case 3: Z << "thirty" ;
       case 4: Z << "fourty" ;
       case 5: Z << "fifty" ;
       case 6: Z << "sixty" ;
       case 7: Z << "seventy" ;
       case 8: Z << "eighty" ;
       case 9: Z << "ninety" ;
       }
       if (!num)
           return ;
   }
   if (num > 9)
   {
       switch  (num)
       {
       case 10:Z<< "ten" ;
       case 11:Z<< "eleven" ;
       case 12:Z<< "twelve" ;
       case 13:Z<< "thirteen" ;
       case 14:Z<< "fourteen" ;
       case 15:Z<< "fifteen" ;
       case 16:Z<< "sixteen" ;
       case 17:Z<< "seventeen" ;
       case 18:Z<< "eighteen" ;
       case 19:Z<< "nineteen" ;
       }
   }
   if (num)
       _speakdigit(Z, num) ;
}