Пример #1
0
 public ktRE_Group(ktRE_Group Gr)
     : this()
 {
     m_Index = Gr.Index;
     m_Length = Gr.Length;
     m_Value = Gr.Value;
     m_Captures = new ktRE_CaptureCollection(Gr.Captures);
     m_Success = Gr.Success;
 }
Пример #2
0
        public ktRE_Match(System.Text.RegularExpressions.Match Match)
            : this()
        {
            m_Index = Match.Index;
            m_Length = Match.Length;
            m_Value = new ktString(Match.Value);
            m_Captures = new ktRE_CaptureCollection(Match.Captures);
            m_Success = Match.Success;

            m_Groups = new ktRE_GroupCollection(Match.Groups);
            if ((Match.NextMatch() != null) && (Match.NextMatch().Success))
            {
                m_NextMatch = new ktRE_Match(Match.NextMatch());
            }
            else
            {
                m_NextMatch = Empty;
                m_Matches = null;
            }
        }
Пример #3
0
        public ktRE_CaptureCollection(ktRE_CaptureCollection GC)
            : this()
        {
            m_List = new ktList();

            foreach (ktRE_Capture G in GC)
            {
                m_List.Add(G);
            }
        }