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

void TransferWord::setTarget ( ApertiumRE const &  part,
string const &  value,
bool  with_queue = true 
)

Sets a value for a target language word part

Parameters:
partregular expression to match
valuethe new value for the given part
with_queueaccess taking or not into account the queue

Definition at line 119 of file transfer_word.cc.

{
  if(with_queue)
  {
    part.replace(t_str, value);
  }
  else
  {
    string mystring = t_str.substr(0, t_str.size() - queue_length);
    part.replace(mystring, value);
    t_str = mystring + t_str.substr(t_str.size() - queue_length);
  }
}

Generated by  Doxygen 1.6.0   Back to index