mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
update NFD to 67345b80eb
This commit is contained in:
parent
a5f3e70653
commit
166128dd73
7 changed files with 170 additions and 171 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue