trimString

Trims leading and trailing whitespace from a string.

string
trimString
(
string str
)

Parameters

str string

a string

Return Value

Type: string

A newly-allocated string that must be freed with glib.global.gfree