office-gobmx/tools/source
Tor Lillqvist 5aee16cf09 Make JsonWriter::writeEscapedOUString() handle surrogate pairs properly
It is wrong to iterate over UTF-16 code units one by one. We have
OUString::iterateCodePoints() to iterate over Unicode code points.

The two UTF-16 code units of a surrogate pair (for a non-BMP code
point) should not be encoded separately to UTF-8 bytes. It is the code
point that should be encoded (to four bytes).

Change-Id: Ica4341308deb6618c9c2da8dcee8a11ef4e8238d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109318
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-15 08:54:12 +01:00
..
datetime
debug
fsys
generic cid#1471704 workaround 2021-01-15 08:08:40 +01:00
inet
memtools
misc Make JsonWriter::writeEscapedOUString() handle surrogate pairs properly 2021-01-15 08:54:12 +01:00
ref
reversemap
stream cid#1471346 Uncaught exception 2021-01-14 20:22:35 +01:00
string
xml
zcodec