Unicode version 1.1.0
Breaking Changes
- Removed
Unicode.Guardsfrom this library and moved them to the unicode_set package.
Enhancements
-
Unicode.Category.categories/0now returns the super categories as well as the subcategories. These super categories are computed at compile time by consolidating the relevant subcategories.Unicode.Category.category/1will only return one category, and it will be the subcategory as it consistent with earlier releases. -
Add
Unicode.ranges/0that returns all Unicode codepoints as a list of 2-tuples representing the disjoint ranges of valid codepoints. The list is in sorted order. -
Add
aliases/0forUnicode.Category,Unicode.Script,Unicode.Block, andUnicode.CombiningClasswhich returns the alias map for the relevant module. -
Add
fetch/1andget/1forUnicode.Category,Unicode.Script,Unicode.Block, andUnicode.CombiningClass. These functions leverage Unicode property value aliases for retrieving codepoints. -
Add
Unicode.fetch_property/1andUnicode.get_property/1that return the module responsible for handling a given Unicode property. -
Add
Unicode.compact_ranges/1that given a list of 2-tuple ranges will compact them into as small a list of contiguous blocks as possible -
Documented all public functions