Unicode String version 1.3.0
Bug Fixes
- Fix case folding for codepoints that fold to themselves.
Enhancements
-
Adds case mapping functions
Unicode.String.upcase/2,Unicode.String.downcase/2andUnicode/String.titlecase/2. These functions implement the full Unicode Casing algorithm including conditiional mappings. They are locale-aware and a locale can be specified as a string, atom or a Cldr.LanguageTag thereby providing basic integration betweenunicode_stringand ex_cldr. -
Case folding always follows the
:fullpath which allows mapping of single code points to multiple code points. There is no practical reason to implement the:simplepath. As a result, thetypeparameter toUnicode.String.Case.Folding.fold/2is no longer required or supported. -
Support an ex_cldr Language Tag as a parameter to
Unicode.String.Case.Folding.fold/2. In fact any map that has a:languagekey with a value that is an ISO 639-1 language code as a lower cased atom may be passed as a parameter.