Go to the source code of this file.
◆ TEST_CASE() [1/4]
TEST_CASE |
( |
"unicode_get_range" | | ) |
|
Definition at line 25 of file unicode_test.cpp.
25 {
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");
29}
void string_eq(string left, string right)
◆ TEST_CASE() [2/4]
TEST_CASE |
( |
"cjk_unified_ideographs" | | ) |
|
Definition at line 31 of file unicode_test.cpp.
31 {
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>"));
36}
The list class represents a linked list.
◆ TEST_CASE() [3/4]
Definition at line 42 of file unicode_test.cpp.
42 {
44 string_eq (utf16_to_utf8 (
"\x4E\x2D"),
"中");
45 t <<
'\x00' <<
'\x61';
48 t <<
'\x00' <<
'\x61' <<
'\x00' <<
'\x62';
54 t <<
'\x00' <<
'\x61' <<
'\x00';
56}
◆ TEST_CASE() [4/4]
Definition at line 58 of file unicode_test.cpp.
58 {
60 t <<
'\x4E' <<
'\x2D';
63 t <<
'\x00' <<
'\x61';
66 t <<
'\x00' <<
'\x61' <<
'\x00' <<
'\x62';
68}