General problem
The messages are made in ASCII by using printf or gnu_printf (in the case of #ifdef _WIN32). In consequence, printing a message for wide characters (especially for strings, because the code could print for a single character) requires to go "deep" in the library. To solve this problem, functions could be done for wchar_t and wchar_t* (with wprintf).
Possible basic functions for lambda users
- single character
ck_assert_wchar_eq
ck_assert_wchar_ne
ck_assert_wchar_lower (by using iswlower)
ck_assert_wchar_upper (by using iswupper)
ck_assert_wchar_ddigit (decimal)
ck_assert_wchar_xdigit (hexadecimal)
ck_assert_wchar_ascii
- etc.
- string
ck_assert_wstr_eq
ck_assert_wstr_ne
ck_assert_wstr_lower
ck_assert_wstr_upper
ck_assert_wstr_len
ck_assert_wstr_startswith
ck_assert_wstr_endswith
ck_assert_wstr_contains
- etc.
General problem
The messages are made in ASCII by using
printforgnu_printf(in the case of#ifdef _WIN32). In consequence, printing a message for wide characters (especially for strings, because the code could print for a single character) requires to go "deep" in the library. To solve this problem, functions could be done forwchar_tandwchar_t*(withwprintf).Possible basic functions for lambda users
ck_assert_wchar_eqck_assert_wchar_neck_assert_wchar_lower(by using iswlower)ck_assert_wchar_upper(by using iswupper)ck_assert_wchar_ddigit(decimal)ck_assert_wchar_xdigit(hexadecimal)ck_assert_wchar_asciick_assert_wstr_eqck_assert_wstr_neck_assert_wstr_lowerck_assert_wstr_upperck_assert_wstr_lenck_assert_wstr_startswithck_assert_wstr_endswithck_assert_wstr_contains