public StateChangedEventArgs(FinderState state) { State = state; }
private void EnterWhiteSpaceState() { m_mode = FinderState.whiteSpaceMode; m_collectionStart = -1; }
private void EnterPunctState() { m_mode = FinderState.punctMode; // In the odd case where there might BE a pfic on file already... byte[] xficElement; if (m_paraXfics.TryGetValue(m_index, out xficElement)) { var endOffset = DataMigration7000010.GetEndOffset(xficElement); var begOffset = DataMigration7000010.GetBeginOffset(xficElement); m_index += endOffset - begOffset; m_collectionStart = -1; // we found an existing xfic, don't collect this one } // ... there wasn't a pfic on file. else { m_collectionStart = m_index; m_index++; } }
internal XficParser(string text, SortedList<int, byte[]> paraXfics) { m_text = text; m_paraXfics = paraXfics; m_index = 0; m_collectionStart = -1; m_neededXficForms = new List<Tuple<int,int, bool>>(); m_mode = FinderState.whiteSpaceMode; }