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

[SR-10771] No equivalent for String.Index(_:within:) for Substrings #53161

Open
lilyball mannequin opened this issue May 25, 2019 · 1 comment
Open

[SR-10771] No equivalent for String.Index(_:within:) for Substrings #53161

lilyball mannequin opened this issue May 25, 2019 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@lilyball
Copy link
Mannequin

lilyball mannequin commented May 25, 2019

Previous ID SR-10771
Radar None
Original Reporter @lilyball
Type Bug
Environment

Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)
Target: x86_64-apple-darwin18.6.0

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

md5: d916e8e7eebfce58023960c4db157777

Issue Description:

String.Index has initializers init?(_:within:) for each String view, as well as equivalent methods samePosition(in:) for each String view, but it doesn't have any way to do this same operation for Substring.

@belkadan
Copy link
Contributor

cc @milseman

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant