Logo Search packages:      
Sourcecode: lttoolbox version File versions

void FSTProcessor::writeEscaped ( string const &  str,
FILE *  output 
) [private]

Write a string to an output stream,

Definition at line 377 of file FSTProcessor.C.

References escaped_chars.

{
  for(unsigned int i = 0, limit = str.size(); i < limit; i++)
  {
    if(escaped_chars.find(str[i]) != escaped_chars.end())
    {
      fputc_unlocked('\\', output);
    }
    fputc_unlocked(str[i], output);
  } 
}


Generated by  Doxygen 1.6.0   Back to index