StringBuilder.take
Description:
[ Version ( since = "2.78" ) ]
[ CCode ( cname = "g_string_new_take" ) ]
public StringBuilder.take (owned string init)
[ CCode ( cname = "g_string_new_take" ) ]
public StringBuilder.take (owned string init)
Creates a new StringBuilder, initialized with the given string.
After this call, init
belongs to the StringBuilder and may no longer
be modified by the caller. The memory of data
has to be dynamically allocated and will eventually be freed with
g_free.
Parameters:
init |
initial text used as the string. Ownership of the string is transferred to the StringBuilder. Passing null creates an empty string. |
Returns:
the new StringBuilder |