ffutf
Utility functions for manipulating Unicode Transformation Format (UTF) compatible data
|
Functions | |
size_t | strlen_u (const char *s, int type) |
Length of a unicode string. More... | |
size_t | strnlen_u (const char *s, size_t max_len, int type) |
Length of a unicode string with a length limit. More... | |
FILE
pointer is specified, the resulting behaviour can be specified by specifying the FFUTF_FAILSAFELY
macro definition in compile-time. If the aforementioned macro is specified, a NULL
FILE
pointer will cause the program to abort. Otherwise, a segmentation fault is induced. Any expansion associated with the macro will be ignored. size_t strlen_u | ( | const char * | s, |
int | type | ||
) |
Length of a unicode string.
s | A valid string pointer. |
type | A valid type. |
size_t strnlen_u | ( | const char * | s, |
size_t | max_len, | ||
int | type | ||
) |
Length of a unicode string with a length limit.
s | A valid string pointer. |
max_len | The maximum length that can be parsed in terms of Unicode characters. |
type | A valid type. |