pikotools/src/convert
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
..
baseparser.cpp - added some converting methods: esc_to_json(...), esc_to_xml(...), esc_to_csv() (convert/misc.h) 2021-10-12 19:53:11 +02:00
baseparser.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
convert.h added to Space: long double to Space::Value and methods for converting from/to long double 2021-06-23 17:01:43 +02:00
double.cpp added to Space: long double to Space::Value and methods for converting from/to long double 2021-06-23 17:01:43 +02:00
double.h added to Space: long double to Space::Value and methods for converting from/to long double 2021-06-23 17:01:43 +02:00
inttostr.cpp namespace PT renamed to pt 2021-05-20 16:11:12 +02:00
inttostr.h namespace PT renamed to pt 2021-05-20 16:11:12 +02:00
misc.cpp fix: correctly escape json/xml/csv wide strings 2022-02-03 19:08:21 +01:00
misc.h fix: correctly escape json/xml/csv wide strings 2022-02-03 19:08:21 +01:00
patternreplacer.h PatternReplacerBase: to_string() changed to to_str() 2021-07-06 21:42:42 +02:00
strtoint.h namespace PT renamed to pt 2021-05-20 16:11:12 +02:00
text.cpp added trim(...) functions to convert/text.h 2021-06-29 23:23:35 +02:00
text.h added trim(...) functions to convert/text.h 2021-06-29 23:23:35 +02:00
text_private.h added trim(...) functions to convert/text.h 2021-06-29 23:23:35 +02:00