internal bool CompareValues(PcreRegexSettings other) { return(Options == other.Options && NewLine == other.NewLine && BackslashR == other.BackslashR && ParensLimit == other.ParensLimit); }
private PcreRegexSettings(PcreRegexSettings settings, bool readOnly) { _options = settings._options; _newLine = settings._newLine; _backslashR = settings._backslashR; _parensLimit = settings._parensLimit; _readOnly = readOnly; }
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); }