RegexTree.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Regex / System / Text / RegularExpressions / RegexTree.cs / 1 / RegexTree.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

// RegexTree is just a wrapper for a node tree with some 
// global information attached. 

namespace System.Text.RegularExpressions { 

    using System.Collections;

    internal sealed class RegexTree { 
        internal RegexTree(RegexNode root, Hashtable caps, Object[] capnumlist, int captop, Hashtable capnames, String[] capslist, RegexOptions opts) {
            _root = root; 
            _caps = caps; 
            _capnumlist = capnumlist;
            _capnames = capnames; 
            _capslist = capslist;
            _captop = captop;
            _options = opts;
        } 

        internal RegexNode _root; 
        internal Hashtable _caps; 
        internal Object[]  _capnumlist;
        internal Hashtable _capnames; 
        internal String[]  _capslist;
        internal RegexOptions _options;
        internal int       _captop;
 
#if DBG
        internal void Dump() { 
            _root.Dump(); 
        }
 
        internal bool Debug {
            get {
                return(_options & RegexOptions.Debug) != 0;
            } 
        }
#endif 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

// RegexTree is just a wrapper for a node tree with some 
// global information attached. 

namespace System.Text.RegularExpressions { 

    using System.Collections;

    internal sealed class RegexTree { 
        internal RegexTree(RegexNode root, Hashtable caps, Object[] capnumlist, int captop, Hashtable capnames, String[] capslist, RegexOptions opts) {
            _root = root; 
            _caps = caps; 
            _capnumlist = capnumlist;
            _capnames = capnames; 
            _capslist = capslist;
            _captop = captop;
            _options = opts;
        } 

        internal RegexNode _root; 
        internal Hashtable _caps; 
        internal Object[]  _capnumlist;
        internal Hashtable _capnames; 
        internal String[]  _capslist;
        internal RegexOptions _options;
        internal int       _captop;
 
#if DBG
        internal void Dump() { 
            _root.Dump(); 
        }
 
        internal bool Debug {
            get {
                return(_options & RegexOptions.Debug) != 0;
            } 
        }
#endif 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK