-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Separate out ASCII and UTF8 in NSString accessors, and use the ASCII one where we really need ASCII #61086
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
Conversation
…one where we really need ASCII
@swift-ci please test |
@swift-ci please benchmark |
@swift-ci please test |
@swift-ci please benchmark |
@swift-ci please test |
@swift-ci please test |
@@ -14,6 +14,8 @@ import StdlibUnittest | |||
|
|||
let longTaggedTests = TestSuite("NonContiguousTaggedStrings") | |||
var constant = "Send Message to different Team" | |||
//doesn't fit in a tagged pointer because of ', but does fit in a SmallString | |||
var shortNonTagged = "Don't Save" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the "smart" apostrophe, or just '
(ASCII: 0x27) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks to me like it's U+0027, should we be using something like U+2019 instead so that it's not an ASCII string so that decoding as ASCII will fail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
argh, copy-paste from the bug report has betrayed me! I'll fix that, thanks for catching it
@swift-ci please test |
1 similar comment
@swift-ci please test |
ok, the Mac test failure is a bug in the test. I've identified what the problem is, but not a fix yet. |
@swift-ci please test macOS platform |
@swift-ci please test |
@swift-ci please test macOS platform |
@swift-ci please test |
@swift-ci please clean test |
@swift-ci please test |
@swift-ci please test and merge |
@swift-ci please test |
No description provided.