FAT | RFS | XFS | ZFS
is_utf8()
PROTOTYPE
#include <posix.h>
int is_utf8(const uint8_t *utf8, size_t utf8_len);
DESCRIPTION
is_utf8() checks if the string referenced by utf8, whose length is utf8_len, is properly encoded in the UTF8 format.
is_utf8() returns TRUE if the string is properly encoded. Otherwise, it returns FALSE.
EXAMPLE
/*-------------------------------------------------------------------*/
/* Return status of name's UTF8 encoding. */
/*-------------------------------------------------------------------*/
return is_utf8(name, strlen(name));