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

part regular expression to match
value the new value for the given part
with_queue access taking or not into account the queue

Definition at line 119 of file transfer_word.cc.

References queue_length, and t_str.

    part.replace(t_str, value);
    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