15 Nov
2022
15 Nov
'22
2:48 p.m.
Nikolay Sivov (@nsivov) commented about dlls/xmllite/writer.c:
return m_alloc(writer->imalloc, len); }
+static BOOL is_high_surrogate(WCHAR ch) +{ + return ch >= 0xd800 && ch <= 0xdbff; +} + +static BOOL is_low_surrogate(WCHAR ch) +{ + return ch >= 0xdc00 && ch <= 0xdfff; +}
There is an option to use some macros for this, from winnls.h. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1334#note_15843