dup_string


Description:

public string dup_string (out size_t length = null)

Similar to get_string except that instead of returning a constant string, the string is duplicated.

The string will always be utf8 encoded.

The return value must be freed using g_free.

Parameters:

this

a string Variant instance

length

a pointer to a size_t, to store the length

Returns:

a newly allocated string, utf8 encoded