Exemplo n.º 1
0
 internal RegexInterpreter(RegexCode code, CultureInfo culture)
 {
     runcode     = code;
     runcodes    = code._codes;
     runstrings  = code._strings;
     runfcPrefix = code._fcPrefix;
     runbmPrefix = code._bmPrefix;
     runanchors  = code._anchors;
     runculture  = culture;
 }
Exemplo n.º 2
0
        internal bool _rightToLeft;                   // true if right to left

        // optimizations

        // constructor

        internal RegexCode(int [] codes, ArrayList stringlist, int trackcount,
                           Hashtable caps, int capsize,
                           RegexBoyerMoore bmPrefix, RegexPrefix fcPrefix,
                           int anchors, bool rightToLeft)
        {
            _codes       = codes;
            _strings     = new String[stringlist.Count];
            _trackcount  = trackcount;
            _caps        = caps;
            _capsize     = capsize;
            _bmPrefix    = bmPrefix;
            _fcPrefix    = fcPrefix;
            _anchors     = anchors;
            _rightToLeft = rightToLeft;
            stringlist.CopyTo(0, _strings, 0, stringlist.Count);
        }