Skip to content
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-8439] Provide UUID RFC 4122 compliant string #3656

Open
swift-ci opened this issue Aug 1, 2018 · 0 comments
Open

[SR-8439] Provide UUID RFC 4122 compliant string #3656

swift-ci opened this issue Aug 1, 2018 · 0 comments

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Aug 1, 2018

Previous ID SR-8439
Radar None
Original Reporter --marc (JIRA User)
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels New Feature
Assignee None
Priority Medium

md5: 27c88bab4d8dd03210ae237df173c850

relates to:

  • SR-9091 UUID does not follow RFC for string representation

Issue Description:

This proposed feature addition is that `UUID` provide some call which returns an RFC 4122 section 3 compliant ⇗ compliant lowercased UUID string.

The hexadecimal values "a" through "f" are output as lower case characters and are case insensitive on input.

This proposed addition is NOT to replace or remove the `uuidString` method which is compliant with Objective-C NSUUID. see SR-865

Possible implementation:

  1. Add a some `rfc4122String` which has an autocomplete prompt like "Returns a lowercased, RFC 4122 compliant, string created from the UUID, such as 'e621e1f8-c36c-495a-93fc-0c247a3e6e5f'"

  2. Update `uuidString` autocomplete prompt to expressly state uppercased. For example, "Returns an UPPERCASED string created from the UUID, such as 'E621E1F8-C36C-495A-93FC-0C247A3E6E5F'" and perhaps also add something like "… consistent with NSUUID."

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant