mirror of
https://github.com/openharmony/third_party_rust_unicode-normalization.git
synced 2026-07-19 15:03:34 -04:00
aaa72a31da
Add an `is_public_assigned` predicate, which tests whether a given `char` is assigned (`General_Category` != `Unassigned`) in the currently supported version of Unicode, and not Private-Use (`General_Category` != `Private_Use`). This comes up in some use cases sensitive to the stability of NFC over Unicode version changes. An unassigned codepoint could become assigned in the future, and new normalizations could apply to it. For further details, see - <https://unicode.org/reports/tr15/#Versioning>