swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.62k stars 10.37k forks source link

Add all of the Unicode properties #58697

Open Azoy opened 2 years ago

Azoy commented 2 years ago

In the future, we'd like to include accessors to get all of the Unicode properties listed here: https://unicode.org/reports/tr18/#Full_Properties whether that be in the stdlib itself or a new Unicode module.

natecook1000 commented 2 years ago

For reference, here's the list of unsupported properties (as seen a bit obliquely in this test):

These apply to character and/or string more than UnicodeScalar, so while it would be nice to support them, there's a bit more design work required: