Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/regex
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a734dd0dd13f80ac4af2da72ae61d7224c6e6cf7
Choose a base ref
...
head repository: rust-lang/regex
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4c59b7079424ef7423a4c9dfdfcaac4e8cf54928
Choose a head ref
  • 1 commit
  • 7 files changed
  • 1 contributor

Commits on Jun 25, 2018

  1. regex: expose lower level search APIs

    This commit exposes two new areas of API surface:
    
      1. A new `captures_read` method which provides a way to access the
         offsets of submatches while amortizing the allocation of the
         space required to store those offsets. Callers should still of
         course prefer to use the higher level `captures` method, but if
         performance dictates, this lower level API may be useful.
      2. New "at" variants of
         shortest_match/is_match/find/captures/captures_read that permit
         controlling where the start of a search begins within a slice.
         This is typically useful for controlling the match semantics of
         look-around operators such as `^` and `$`, and are necessary for
         implementing non-overlapping iterators.
    
    Fixes #219
    BurntSushi committed Jun 25, 2018
    Configuration menu
    Copy the full SHA
    4c59b70 View commit details
    Browse the repository at this point in the history
Loading