14 #define CHECK_CASEMAPPING(_codepoint, _uppercase, _lowercase, _titlecase, _name) { \
15 ::helpers::CaseMappingEntry e; \
16 e.codepoint = _codepoint; \
17 e.uppercase = _uppercase; \
18 e.lowercase = _lowercase; \
19 e.titlecase = _titlecase; \
21 ::helpers::CaseMappingEntry a; \
22 a.uppercase = ::helpers::uppercase(_codepoint); \
23 a.lowercase = ::helpers::lowercase(_codepoint); \
24 a.titlecase = ::helpers::titlecase(_codepoint); \
25 EXPECT_PRED_FORMAT2(::helpers::CompareCasemapping, e, a); \
30 std::string uppercase(
unicode_t codepoint);
31 std::string uppercase(
const std::string& text);
33 std::string lowercase(
unicode_t codepoint);
34 std::string lowercase(
const std::string& text);
36 std::string titlecase(
unicode_t codepoint);
37 std::string titlecase(
const std::string& text);
39 struct CaseMappingEntry
47 std::string uppercase;
48 std::string lowercase;
49 std::string titlecase;
53 ::testing::AssertionResult CompareCasemapping(
54 const char* expressionExpected,
const char* expressionActual,
55 const CaseMappingEntry& entryExpected,
const CaseMappingEntry& entryActual);
uint32_t unicode_t
Unicode codepoint.
Definition: utf8rewind.h:178
Public interface for UTF-8 functions.