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

void InterchunkWord::init ( string const &  chunk  ) 

Sets a chunk

Parameters:
chunk the chunk

Definition at line 68 of file interchunk_word.cc.

References queue.

Referenced by InterchunkWord().

{
  for(size_t i = 0; i < chunk.size(); i++)
  {
    if(chunk[i] == '\\')
    {
      i++;
    }
    else if(chunk[i] == '{')
    {
      this->chunk = chunk.substr(0, i);
      this->queue = chunk.substr(i);
      return;
    }
  }
  this->chunk = chunk;
  this->queue = "";
}


Generated by  Doxygen 1.6.0   Back to index