Skip to content

[5.7] Integrate API changes into release/5.7 #298

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

Merged
merged 18 commits into from
Apr 21, 2022

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Apr 19, 2022

No description provided.

natecook1000 and others added 15 commits April 18, 2022 19:36
This adds methods to RegexComponent for the remainder of the regex
options, and passes the current MatchingOptions further down into
the consumers so that the correct behavior can be used.
…g#247)

* Clean up based on the String Processing Algorithms proposal

- Move functions and types that have not been proposed from public to internal
- Add doc comments for public API
- Add FIXME for API awaiting SE-0346
- Replace `_MatchResult` with `Regex<Output>.Match` and update tests

Co-authored-by: Richard Wei <[email protected]>
Makes the existing CharacterClass model type SPI, and adds a public
CharacterClass type to the RegexBuilder module, which uses a DSLTree char class
instead of the AST's version. RegexBuilder.CharacterClass is a more limited
API than we need for the internal character class model, giving us room to
expand on it as necessary in the future.
These were mostly leftover bits from testing 👋
* Update regex syntax pitch

* Rename file
* Throwing customization hooks

* Adds test to try out throwing custom code. 

* Adds processor support.

* Add throws to capture transform API, plumbing

* Remove non-failable try-capture overloads
Go from matchWhole -> wholeMatch(in:), which is more consistent with firstMatch etc.
Add availability to public, SPI, and test symbols.
Add remaining availability annotations.
`firstMatch(of:)` was ignoring the start/endIndex when searching in
substrings; this change fixes that issue. Also adds the 'in' label
to `Regex.firstMatch(in:Substring)` to match the rest of the related
APIs.
Throwing matches and update to CustomMatchingRegexComponent
@Azoy
Copy link
Contributor Author

Azoy commented Apr 19, 2022

@swift-ci please test

@Azoy Azoy requested review from natecook1000 and itingliu April 19, 2022 02:58
@rxwei
Copy link
Contributor

rxwei commented Apr 19, 2022

Triggered compiler tests here: swiftlang/swift#42446

Import _RegexParser as implementation only
@Azoy
Copy link
Contributor Author

Azoy commented Apr 19, 2022

@swift-ci please test

@Azoy
Copy link
Contributor Author

Azoy commented Apr 20, 2022

@swift-ci please test

@milseman
Copy link
Member

@swift-ci please test macOS platform

@Azoy Azoy merged commit 115a937 into swiftlang:swift/release/5.7 Apr 21, 2022
@Azoy Azoy deleted the da-api-mon branch April 21, 2022 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants