MCPcopy Create free account
hub / github.com/HelenOS/helenos / wstr_lsize

Function wstr_lsize

kernel/generic/src/lib/str.c:349–352  ·  view source on GitHub ↗

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. *

Source from the content-addressed store, hash-verified

347 *
348 */
349size_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 *

Callers 1

print_wstrFunction · 0.50

Calls 1

wstr_nlengthFunction · 0.70

Tested by

no test coverage detected