Skip to content

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

@kevin2kevin2

Description

@kevin2kevin2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions