This commit is contained in:
AzaezelX 2023-05-27 20:47:21 -05:00
parent a5f3e70653
commit 166128dd73
7 changed files with 170 additions and 171 deletions

View file

@ -92,13 +92,13 @@ int NFDi_SafeStrncpy( char *dst, const char *src, size_t maxCopy )
/* adapted from microutf8 */
size_t NFDi_UTF8_Strlen( const nfdchar_t *str )
int32_t NFDi_UTF8_Strlen( const nfdchar_t *str )
{
/* This function doesn't properly check validity of UTF-8 character
sequence, it is supposed to use only with valid UTF-8 strings. */
size_t character_count = 0;
size_t i = 0; /* Counter used to iterate over string. */
int32_t character_count = 0;
int32_t i = 0; /* Counter used to iterate over string. */
nfdchar_t maybe_bom[4];
/* If there is UTF-8 BOM ignore it. */