Let me share my vision of API, i.e. what function should we provide:
simdutf::validate_utf8
simdutf::validate_utf16
simdutf::utf8_to_utf16 -- with error checking
simdutf::utf16_to_utf8 -- with error checking
simdutf::unchecked::utf8_to_utf16 -- without error checking
simdutf::unchecked::utf16_to_utf8 -- without error checking
// maybe later
simdutf::utf8_length
simdutf::utf16_length
https://github.com/lemire/simdutf/blob/19a0db4cc5938abdf1893ae58ae472648ceff8fd/include/simdutf/implementation.h#L10
Let me share my vision of API, i.e. what function should we provide:
Do you think it makes sense?