singrdk/base/Applications/Runtime/Full/System/Text/RegularExpressions/regextree.cs

46 lines
1.3 KiB
C#
Raw Normal View History

2008-03-05 09:52:00 -05:00
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
// RegexTree is just a wrapper for a node tree with some
// global information attached.
//
2008-11-17 18:29:00 -05:00
namespace System.Text.RegularExpressions
{
2008-03-05 09:52:00 -05:00
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
}
}