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-337] hasPrefix and hasSuffix not implemented in Swift #42959
Comments
I've implemented this with: extension String { let selfCharacters = self.characters var s = selfStart while ( s < selfEnd && o < otherEnd ) { let selfCharacters = self.characters var s = selfEnd repeat { Which file should it go into? The existing hasPrefix/hasSuffix on OSX in stdlib/public/core/StringLegacy.swift but I don't know if that's the right place to put it. |
Created pull request for the above at #737 |
Fixed in f9b3e14. |
Additional Detail from JIRA
md5: 7139ff1a5de95a9c013b0ae4cb94233c
Issue Description:
In stdlib/public/core/StringLegacy.swift there is a fixme to implement hasPrefix and hasSuffix without Objective-C
// FIXME: Implement hasPrefix and hasSuffix without objc
// rdar://problem/18878343
I'd like to give this a go.
The text was updated successfully, but these errors were encountered: