Beispiel #1
0
        internal readonly bool _rightToLeft;           // true if right to left

        internal RegexCode(int[] codes, List <string> stringlist, int trackcount,
                           Dictionary <int, int> caps, int capsize,
                           RegexBoyerMoore bmPrefix, RegexPrefix fcPrefix,
                           int anchors, bool rightToLeft)
        {
            Debug.Assert(codes != null, "codes cannot be null.");
            Debug.Assert(stringlist != null, "stringlist cannot be null.");

            _codes       = codes;
            _strings     = stringlist.ToArray();
            _trackcount  = trackcount;
            _caps        = caps;
            _capsize     = capsize;
            _bmPrefix    = bmPrefix;
            _fcPrefix    = fcPrefix;
            _anchors     = anchors;
            _rightToLeft = rightToLeft;
        }
Beispiel #2
0
        internal readonly bool _rightToLeft;                // true if right to left

        internal RegexCode(int[] codes, List<string> stringlist, int trackcount,
                           Dictionary<int, int> caps, int capsize,
                           RegexBoyerMoore bmPrefix, RegexPrefix fcPrefix,
                           int anchors, bool rightToLeft)
        {
            Debug.Assert(codes != null, "codes cannot be null.");
            Debug.Assert(stringlist != null, "stringlist cannot be null.");

            _codes = codes;
            _strings = stringlist.ToArray();
            _trackcount = trackcount;
            _caps = caps;
            _capsize = capsize;
            _bmPrefix = bmPrefix;
            _fcPrefix = fcPrefix;
            _anchors = anchors;
            _rightToLeft = rightToLeft;
        }