Use IndexOf{Any} for case-sensitive singletons in FindFirstChar
authorStephen Toub <stoub@microsoft.com>
Mon, 16 Dec 2019 23:19:49 +0000 (18:19 -0500)
committerStephen Toub <stoub@microsoft.com>
Thu, 9 Jan 2020 03:50:08 +0000 (22:50 -0500)
commit26a848f339670c777420e982ce594fa484d60a28
tree89db3bdbf6558ad1ba9c06f91bc961df2f5e8806
parent8c28c7c99a9abfe755fa9e407cde430f4149fa9e
Use IndexOf{Any} for case-sensitive singletons in FindFirstChar

Takes advantage of vectorization in string.IndexOf.
src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCharClass.cs
src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCompiler.cs