[SR-10771] No equivalent for String.Index(_:within:) for Substrings #53161
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
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
md5: d916e8e7eebfce58023960c4db157777
Issue Description:
String.Index
has initializersinit?(_:within:)
for eachString
view, as well as equivalent methodssamePosition(in:)
for eachString
view, but it doesn't have any way to do this same operation forSubstring
.The text was updated successfully, but these errors were encountered: