Unicode.utf8_Strncpy

Like the standard C strncpy() function, but copies a given number of characters instead of a given number of bytes. The src string must be valid UTF-8 encoded text. (Use g_utf8_validate() on all text before trying to use UTF-8 utility functions with it.)

class Unicode
static
string
utf8_Strncpy
(
string dest
,
string src
,)

Parameters

dest string

buffer to fill with characters from src

src string

UTF-8 encoded string

n gsize

character count

Return Value

Type: string

dest

Meta