Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable regex to use IndexOf(..., OrdinalIgnoreCase) for prefix searching #85438

Merged
merged 3 commits into from
May 1, 2023

Commits on Apr 27, 2023

  1. Enable regex to use IndexOf(..., OrdinalIgnoreCase) for prefix searching

    As one of its many ways of finding the next possible match starting location, Regex recognizes a string known to start the expression and uses IndexOf to find it.  With this change, it can also do so for OrdinalIgnoreCase.  With improvements to IndexOf(..., OrdinalIgnoreCase), this now yields significantly faster searches through longer inputs, in addition to leading to simpler code in source generated regexes.
    stephentoub committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    1b4f159 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1facae View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2023

  1. Configuration menu
    Copy the full SHA
    f0b7e27 View commit details
    Browse the repository at this point in the history