4 instantiations of RegexParser
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\RegexParser.cs (4)
92using var parser = new RegexParser(pattern, options, CultureInfo.InvariantCulture, // since we won't perform case conversions, culture doesn't matter in this case. 105using var parser = new RegexParser(pattern, options, culture, new Hashtable(), 0, null, stackalloc int[OptionStackDefaultSize]); 142using var parser = new RegexParser(pattern, options, culture, caps, capsize, capnames, stackalloc int[OptionStackDefaultSize]); 223var parser = new RegexParser(input, RegexOptions.None, CultureInfo.InvariantCulture, new Hashtable(), 0, null, stackalloc int[OptionStackDefaultSize]);
17 references to RegexParser
System.Text.RegularExpressions (17)
System\Text\RegularExpressions\Regex.Cache.cs (1)
138CultureInfo culture = RegexParser.GetTargetCulture(options);
System\Text\RegularExpressions\Regex.cs (6)
125culture ??= RegexParser.GetTargetCulture(options); 128RegexTree tree = RegexParser.Parse(pattern, options, culture); 253RegexTree tree = RegexParser.Parse(pattern, options, (options & RegexOptions.CultureInvariant) != 0 ? CultureInfo.InvariantCulture : CultureInfo.CurrentCulture); 282return RegexParser.Escape(str); 295return RegexParser.Unescape(str); 372return RegexParser.GroupNameFromNumber(caps, capslist, capsize, i);
System\Text\RegularExpressions\RegexParser.cs (4)
92using var parser = new RegexParser(pattern, options, CultureInfo.InvariantCulture, // since we won't perform case conversions, culture doesn't matter in this case. 105using var parser = new RegexParser(pattern, options, culture, new Hashtable(), 0, null, stackalloc int[OptionStackDefaultSize]); 142using var parser = new RegexParser(pattern, options, culture, caps, capsize, capnames, stackalloc int[OptionStackDefaultSize]); 223var parser = new RegexParser(input, RegexOptions.None, CultureInfo.InvariantCulture, new Hashtable(), 0, null, stackalloc int[OptionStackDefaultSize]);
System\Text\RegularExpressions\RegexReplacement.cs (1)
112repl = RegexParser.ParseReplacement(replacement, roptions, caps, capsize, capnames);
System\Text\RegularExpressions\RegexWriter.cs (4)
254Emit(RegexOpcode.TestBackreference, RegexParser.MapCaptureNumber(node.M, _tree.CaptureNumberSparseMapping)); 348Emit(RegexOpcode.Capturemark, RegexParser.MapCaptureNumber(node.M, _tree.CaptureNumberSparseMapping), RegexParser.MapCaptureNumber(node.N, _tree.CaptureNumberSparseMapping)); 428Emit((RegexOpcode)node.Kind | bits, RegexParser.MapCaptureNumber(node.M, _tree.CaptureNumberSparseMapping));
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
272int captureNum = RegexParser.MapCaptureNumber(node.M, _captureSparseMapping);