Exemplo n.º 1
0
 public SegmentedSubstring(SegmentedSubstring other)
 {
     m_length = other.m_length;
     m_doNotExcludeLineNumbers = other.m_doNotExcludeLineNumbers;
     m_string = other.m_string;
     m_data   = other.m_data;
 }
Exemplo n.º 2
0
 public SegmentedSubstring(PtrString str)
 {
     m_length = str.Length;
     m_doNotExcludeLineNumbers = true;
     m_string = str;
     m_data   = str.Pointer;
 }
Exemplo n.º 3
0
 public SegmentedString(PtrString str)
 {
     m_pushedChar1   = '\0';
     m_pushedChar2   = '\0';
     m_currentString = new SegmentedSubstring(str);
     m_currentChar   = '\0';
     m_numberOfCharactersConsumedPriorToCurrentString = 0;
     m_numberOfCharactersConsumedPriorToCurrentLine   = 0;
     m_currentLine   = 0;
     m_substrings    = new List <SegmentedSubstring>();
     m_closed        = false;
     m_empty         = str.Length == 0;
     m_fastPathFlags = FastPathFlags.NoFastPath;
     m_advanceFunc   = null;
     m_advanceAndUpdateLineNumberFunc = null;
 }
Exemplo n.º 4
0
 public void clear()
 {
     m_length = 0;
     m_string = null;
     m_data   = null;
 }