private void UpdateList(ref int Count, ref int last, ref int first, bool CROnly)
{
try
{
Count++;
if (last > -1)
{
TermListItem setnext = (TermListItem) m_List[last];
setnext.Next = m_List.Count - 1;
last = m_List.Count - 1;
}//end if
else //First entry into the jump list. Initialize both first and last.
{
first = m_List.Count - 1;
last = m_List.Count - 1;
}//end else
//Special case the CROnly to insert special jumps into both LF and CRLF entries.
if (CROnly)
{
if (m_LastLFOnly > -1)
{
TermListItem lastlf = (TermListItem) m_List[m_LastLFOnly];
if (lastlf.CROnlyNext == -1)
{
lastlf.CROnlyNext = m_List.Count - 1;
}//end if
}//end if
if (m_LastCRLF > -1)
{
TermListItem lastcrlf = (TermListItem) m_List[m_LastCRLF];
if (lastcrlf.CROnlyNext == -1)
{
lastcrlf.CROnlyNext = m_List.Count - 1;
}//end if
}//end if
}//end if
}//end try
catch (Exception e)
{
CRLFAnalyzer.OutputException("Exception in TermListType.UpdateList", e);
}//end catch
}//end UpdateList