_strip


Description:

public unowned string _strip ()

Example: Removes leading and trailing whitespace (inline):

public static int main (string[] args) {
string my_wisdom = " \t I'm here, Brigadier. ";
unowned string res = my_wisdom._strip ();

// Output:
// ``'I'm here, Brigadier.'``
// ``'I'm here, Brigadier.'``
print ("'%s'\n", my_wisdom);
print ("'%s'\n", res);

return 0;
}

valac --pkg glib-2.0 string._strip.vala