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

string TransferWord::source ( ApertiumRE const &  part,
bool  with_queue = true 
)

Reference a source language word part

Parameters:
part regular expression to match
with_queue access taking into account the queue
Returns:
reference to the part of string matched

Definition at line 77 of file transfer_word.cc.

References queue_length, and s_str.

{
  if(with_queue)
  {
    return part.match(s_str);
  }
  else
  {
    return part.match(s_str.substr(0, s_str.size() - queue_length));
  }
}


Generated by  Doxygen 1.6.0   Back to index