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

void Expander::expand ( string const &  fichero,
FILE *  output 
)

Compile dictionary to letter transducers

Definition at line 42 of file expander.cc.

References procNode(), and reader.

{
  reader = xmlReaderForFile(fichero.c_str(), NULL, 0);
  if(reader == NULL)
  {
    cerr << "Error: Cannot open '" << fichero << "'." << endl;
    exit(EXIT_FAILURE);
  }

  int ret = xmlTextReaderRead(reader);
  while(ret == 1)
  {
    procNode(output);
    ret = xmlTextReaderRead(reader);
  }

  if(ret != 0)
  {
    wcerr << L"Error: Parse error at the end of input." << endl;
  }

  xmlFreeTextReader(reader);
  xmlCleanupParser();
}


Generated by  Doxygen 1.6.0   Back to index