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

void Expander::append ( list< pair< wstring, wstring > > &  result,
list< pair< wstring, wstring > > const &  endings 
) [static, private]

Append a list of endings to a list of current transductions.

Parameters:
result the current partial transductions, and after calling this method, the result of concatenations.
endings the endings to be appended.

Definition at line 531 of file expander.cc.

Referenced by procEntry().

{
  EntList temp;
  EntList::iterator it, limit;
  EntList::const_iterator it2, limit2;

  for(it = result.begin(), limit = result.end(); it != limit; it++)
  {
    for(it2 = endings.begin(), limit2 = endings.end(); it2 != limit2; it2++)
    {
      temp.push_back(pair<wstring, wstring>(it->first + it2->first, 
                                  it->second + it2->second));
    }
  }

  result = temp;
}


Generated by  Doxygen 1.6.0   Back to index