From: Jean Privat Date: Fri, 23 Aug 2019 13:25:26 +0000 (-0400) Subject: Merge: Wrapper of ICU's UTF-16 encoded strings and conversion X-Git-Url: http://nitlanguage.org Merge: Wrapper of ICU's UTF-16 encoded strings and conversion ### `u16_string` module This module is meant to ease the use of complex string operations provided by the ICU library. The module provides a wrapper for ICU's string structure : `UChar *` as well as conversion fucntions to/from `String` and `CString` ### Remarks - In order to convert a `String` to a `U16String`, the string must be converted to a `CString` first. Since `CString`'s are null temrinated, `U16String`'s also have to be null terminated and cannot have embedded termination characters. - I am having some issues with DocUnits blocs thus there are no tests in the comments at the moment. - I added an other `new` operator to the `CString` class which only returns a `null` string Pull-Request: #2773 Reviewed-by: Lucas Bajolet Reviewed-by: Alexandre Terrasa Reviewed-by: Jean Privat --- d5b3ef0cbef3f679e6d1a27064d3136e5ea34a67