Skip to content

Fix Foundation extensions to Substring #1244

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 1 commit into from
Oct 2, 2017

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Sep 29, 2017

When a substring gets bridged to NSString, it loses the initial offset,
therefore APIs that accept or return StringIndex ranges should handle
this case explicitly by adding/subtracting the substring start offset.

Similar to swiftlang/swift#12151

When a substring gets bridged to NSString, it loses the initial offset,
therefore APIs that accept or return StringIndex ranges should handle
this case explicitly by adding/subtracting the substring start offset.
@moiseev moiseev requested a review from phausler September 29, 2017 21:56
@moiseev
Copy link
Contributor Author

moiseev commented Sep 29, 2017

@swift-ci Please test

@ianpartridge ianpartridge merged commit cbb7a1a into swiftlang:master Oct 2, 2017
@moiseev moiseev deleted the ns-substring-corelibs branch October 2, 2017 17:31
ianpartridge pushed a commit to ianpartridge/swift-corelibs-foundation that referenced this pull request Oct 9, 2017
When a substring gets bridged to NSString, it loses the initial offset,
therefore APIs that accept or return StringIndex ranges should handle
this case explicitly by adding/subtracting the substring start offset.
ianpartridge added a commit that referenced this pull request Oct 9, 2017
When a substring gets bridged to NSString, it loses the initial offset,
therefore APIs that accept or return StringIndex ranges should handle
this case explicitly by adding/subtracting the substring start offset.
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.

2 participants