unicode-rs / unicode-normalization

Unicode Normalization forms according to UAX#15 rules
https://unicode-rs.github.io/unicode-normalization
Other
158 stars 40 forks source link

Add an `is_public_assigned` predicate. #78

Closed sunfishcode closed 3 years ago

sunfishcode commented 3 years ago

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