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

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

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

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

Definition at line 527 of file Expander.C.

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<string, string>(it->first + it2->first, 
                                  it->second + it2->second));

  result = temp;

Generated by  Doxygen 1.6.0   Back to index