Beispiel #1
0
 internal bool CompareValues(PcreRegexSettings other)
 {
     return(Options == other.Options &&
            NewLine == other.NewLine &&
            BackslashR == other.BackslashR &&
            ParensLimit == other.ParensLimit);
 }
Beispiel #2
0
 private PcreRegexSettings(PcreRegexSettings settings, bool readOnly)
 {
     _options     = settings._options;
     _newLine     = settings._newLine;
     _backslashR  = settings._backslashR;
     _parensLimit = settings._parensLimit;
     _readOnly    = readOnly;
 }
Beispiel #3
0
        public PcreRegex(string pattern, PcreRegexSettings settings)
        {
            if (pattern == null)
            {
                throw new ArgumentNullException("pattern");
            }
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            Key = new RegexKey(pattern, settings);
            _re = Caches.RegexCache.GetOrAdd(Key);
        }