Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add assert functions for wide character and string of wide characters #345

Open
kevin2kevin2 opened this issue Nov 23, 2022 · 0 comments
Open

Comments

@kevin2kevin2
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant