StringChunk.insert

string insert(string string_)

Adds a copy of string to the #GStringChunk. It returns a pointer to the new copy of the string in the #GStringChunk. The characters in the string can be changed, if necessary, though you should not change anything after the end of the string.

Unlike [glib.string_chunk.StringChunk.insertConst], this function does not check for duplicates. Also strings added with [glib.string_chunk.StringChunk.insert] will not be searched by [glib.string_chunk.StringChunk.insertConst] when looking for duplicates.

Parameters

string_the string to add

Returns

a pointer to the copy of string within

the #GStringChunk