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

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

Sets a value for a source 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 103 of file transfer_word.cc.

References queue_length, and s_str.

    part.replace(s_str, value);
    string mystring = s_str.substr(0, s_str.size() - queue_length);
    part.replace(mystring, value);
    s_str = mystring + s_str.substr(s_str.size() - queue_length);

Generated by  Doxygen 1.6.0   Back to index