21#if defined(OS_MINGW) || defined(OS_WIN)
22using lolly::data::wchar_to_utf8;
26 string_eq (unicode_get_range ((
int)
'a'),
"ascii");
27 string_eq (unicode_get_range (0x2460),
"enclosed_alphanumerics");
28 string_eq (unicode_get_range (0x24ff),
"enclosed_alphanumerics");
32 CHECK (is_cjk_unified_ideographs (
"<#4E2D>"));
33 CHECK (has_cjk_unified_ideographs (
"<#4E2D>"));
34 CHECK (has_cjk_unified_ideographs (
"bib-<#4E2D>"));
35 CHECK (!is_cjk_unified_ideographs (
"bib-<#4E2D>"));
38#if defined(OS_MINGW) || defined(OS_WIN)
44 string_eq (utf16_to_utf8 (
"\x4E\x2D"),
"中");
45 t <<
'\x00' <<
'\x61';
48 t <<
'\x00' <<
'\x61' <<
'\x00' <<
'\x62';
54 t <<
'\x00' <<
'\x61' <<
'\x00';
60 t <<
'\x4E' <<
'\x2D';
63 t <<
'\x00' <<
'\x61';
66 t <<
'\x00' <<
'\x61' <<
'\x00' <<
'\x62';
The list class represents a linked list.
void string_eq(string left, string right)
string unicode_get_range(int code)
bool is_cjk_unified_ideographs(string s)
Checks if a string contains only CJK Unified Ideographs.
string utf16_to_utf8(string s_u16)
Convert UTF-16 string to UTF-8 string.
string utf8_to_utf16(string s_u8)
Convert UTF-8 string to UTF-16 string.
bool has_cjk_unified_ideographs(string s)
Checks if a string contains any CJK Unified Ideographs.
TEST_CASE("test for operator+= and advance()")