pikotools/src/utf8
Tomasz Sowa 6b97b1b74a fix: correctly escape json/xml/csv wide strings
A wide string was first changed to utf-8 and then escaped to json/xml/csv
which is incorrect. First should be escaped and then changed to utf-8.

Add TextStreamBase<>::iterator and TextStreamBase<>::const_interator as classes
with a method wchar_t get_unicode_and_advance(const iterator & end)
to return one character either from utf-8 stream or from wide stream.

Let TextStreamBase<>::operator<<(wchar_t v) correctly use utf-8.
2022-02-03 19:08:21 +01:00
..
utf8.cpp Log class has the Stream class as a base class now 2021-06-24 20:52:48 +02:00
utf8.h - added some converting methods: esc_to_json(...), esc_to_xml(...), esc_to_csv() (convert/misc.h) 2021-10-12 19:53:11 +02:00
utf8_private.cpp fixed: using size() when serializing strings - this allows to serialize a string which contain a null character 2021-06-14 13:48:32 +02:00
utf8_private.h Log class has the Stream class as a base class now 2021-06-24 20:52:48 +02:00
utf8_stream.h fix: correctly escape json/xml/csv wide strings 2022-02-03 19:08:21 +01:00
utf8_templates.h - added some converting methods: esc_to_json(...), esc_to_xml(...), esc_to_csv() (convert/misc.h) 2021-10-12 19:53:11 +02:00