Logo Search packages:      
Sourcecode: lttoolbox version File versions

unsigned short FSTProcessor::readEscaped ( FILE *  input  )  [private]

Reads a character that is defined in the set of escaped_chars

Parameters:
input the stream to read from
Returns:
code of the character

Definition at line 53 of file FSTProcessor.C.

References escaped_chars, and streamError().

Referenced by readFullBlock().

{
  if(feof(input))
  {
    streamError();
  }

  unsigned short val = static_cast<unsigned short>(fgetc_unlocked(input));

  if(feof(input) || escaped_chars.find(val) == escaped_chars.end())
  {
    streamError();
  }
  
  return val;
}


Generated by  Doxygen 1.6.0   Back to index