Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

string const & Alphabet::getSymbol ( int const   symbol,
bool  uppercase = false 
) const

Gets a symbol from their code.

Parameters:
symbol code of the symbol
uppercase true if we want an uppercase symbol
Returns:
the symbol

Definition at line 241 of file Alphabet.C.

References size(), and slexicinv.

{
  if(uppercase)
  {
    if(slexicinv[symbol].size() == 1)
    {
      return slexicinv[toupper(symbol)];
    }
  }
  return slexicinv[symbol];
}


Generated by  Doxygen 1.6.0   Back to index