Skip to content

Conversation

@milseman
Copy link
Member

@milseman milseman commented Apr 23, 2020

Add string deconstruction into contiguous UTF-8 (allocating if
needed).

rdar://problem/59329461

@milseman
Copy link
Member Author

@swift-ci please test

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Catfish-Man this would be another place where we expect to not use the large nibble

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Catfish-Man we'd like to exhaustively test different possibilities of tagged, large contiguous ASCII, and large UTF-16 NSStrings. Is this the best way and/or is this complete? Is there something more guaranteed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out setUpStringTests in ObjectiveCTests.m for every possibility I could remember

@milseman
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - edf0ea316a73585e365dfeb7cdd7d422c44ff537

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - edf0ea316a73585e365dfeb7cdd7d422c44ff537

@milseman milseman changed the title WIP: Deconstructed strings [string] Add _deconstructUTF8 for internal usage Apr 24, 2020
@milseman
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 1276478aa1e07cc3f5bb493131b637cdee6719e5

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 1276478aa1e07cc3f5bb493131b637cdee6719e5

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove constant evaluable comment here, if you like. This is not required to be constant evaluable and possibly won't ever be.

Add string deconstruction into contiguous UTF-8 (allocating if
needed).

Comments and docs to come soon, for now doing early testing.
@ravikandhadai
Copy link
Contributor

Just wondering. May be I missed it, does this PR have a public API (not meant for testing) that is meant for the os_swiftoverlay?

@milseman
Copy link
Member Author

@swift-ci please test

@milseman
Copy link
Member Author

Just wondering. May be I missed it, does this PR have a public API (not meant for testing) that is meant for the os_swiftoverlay?

Right now it has one that's flagged plain public. I'm thinking about whether we want to restrict it to SPI os_swiftoverlay if we also want it to be a compiler intrinsic.

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 66f7c70366187f126d26b8bf7682e4ae810df71a

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 66f7c70366187f126d26b8bf7682e4ae810df71a

@ravikandhadai ravikandhadai self-requested a review April 24, 2020 19:22
Copy link
Contributor

@ravikandhadai ravikandhadai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@milseman milseman merged commit 554cbda into swiftlang:master Apr 24, 2020
@milseman milseman deleted the deconstring branch April 24, 2020 21:56
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.

4 participants