Unicode.utf8_Substring

Copies a substring out of a UTF-8 encoded string. The substring will contain end_pos - start_pos characters. Since 2.30

class Unicode
static
string
utf8_Substring

Parameters

str string

a UTF-8 encoded string

startPos glong

a character offset within str

endPos glong

another character offset within str

Return Value

Type: string

a newly allocated copy of the requested substring. Free with g_free() when no longer needed.

Meta