System.Text.RegularExpressions.RegexParser.NoteCaptures C# (CSharp) Method

NoteCaptures() private method

private NoteCaptures ( Hashtable caps, int capsize, Hashtable capnames ) : void
caps System.Collections.Hashtable
capsize int
capnames System.Collections.Hashtable
return void
        internal void NoteCaptures(Hashtable caps, int capsize, Hashtable capnames)
        {
            _caps = caps;
            _capsize = capsize;
            _capnames = capnames;
        }

Usage Example

Beispiel #1
0
        /*
         * This static call constructs a flat concatenation node given
         * a replacement pattern.
         */
        internal static RegexReplacement ParseReplacement(String rep, Hashtable caps, int capsize, Hashtable capnames, RegexOptions op)
        {
            RegexParser p;
            RegexNode root;

            p = new RegexParser((op & RegexOptions.CultureInvariant) != 0 ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture);

            p._options = op;

            p.NoteCaptures(caps, capsize, capnames);
            p.SetPattern(rep);
            root = p.ScanReplacement();

            return new RegexReplacement(rep, root, caps);
        }
All Usage Examples Of System.Text.RegularExpressions.RegexParser::NoteCaptures