From 268b7845af166c68b1c226f0be9ba5cf983ae91c Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 14 Feb 2021 17:50:51 +0100 Subject: Support different std containers, support different basic types --- debian/README.Debian | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'debian') diff --git a/debian/README.Debian b/debian/README.Debian index 382d20d..0a47d0a 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -57,6 +57,11 @@ The following encodings are implicitly deducted from types: * char16_t: UTF-16 * char32_t: UTF-32 +You can specify different container types directly: + + std::deque utf8_value {...}; + std::list utf16_value{unicode::convert, std::list>(utf8_value)}; + Explicit encoding specification is also possible: std::string value {"äöü"}; @@ -70,6 +75,22 @@ Supported encodings are: * unicode::ISO_8859_1 * unicode::ISO_8859_15 +Supported basic types: + * char + * char8_t (C++20) + * wchar_t (UTF-16 on Windows, UTF-32 on Linux) + * char16_t + * char32_t + * uint8_t, int8_t + * uint16_t, int16_t + * uint32_t, int32_t + * basically, all basic 8-bit, 16-bit and 32-bit that can encode + UTF-8, UTF-16 and UTF-32, respectively. + +Supported container types: + * All std container types that can be iterated (vector, list, deque, array) + * Source and target containers can be different container types + Validation can be done like this: bool valid{unicode::is_valid_utf(utf16_value)}; -- cgit v1.2.3