Print highlighted filename in unicode

Print_filename_in_fileselector()
This commit is contained in:
Thomas Bernard
2018-02-12 13:34:26 +01:00
parent 3322529804
commit b882eb9fe4
3 changed files with 46 additions and 7 deletions

View File

@@ -47,6 +47,23 @@ word * Unicode_strdup(const word * str)
return new_str;
}
/// Copy unicode string
void Unicode_strlcpy(word * dst, const word * src, size_t len)
{
if (len == 0)
return;
while (len > 1)
{
*dst = *src;
if (*src == '\0')
return;
dst++;
src++;
len--;
}
*dst = 0;
}
/// Compare an unicode string with a regular Latin1 string
int Unicode_char_strcmp(const word * s1, const char * s2)
{