Get size of wide string with length limit. * * Get the number of bytes which are used by up to @a max_len first * wide characters in the wide string @a str. If @a max_len is greater than * the length of @a str, the entire wide string is measured (excluding the * NULL-terminator). * * @param str Wide string to consider. * @param max_len Maximum number of wide characters to measure. *
| 347 | * |
| 348 | */ |
| 349 | size_t wstr_lsize(const char32_t *str, size_t max_len) |
| 350 | { |
| 351 | return (wstr_nlength(str, max_len * sizeof(char32_t)) * sizeof(char32_t)); |
| 352 | } |
| 353 | |
| 354 | /** Get number of characters in a string. |
| 355 | * |
no test coverage detected