Kaya 0.5.3 reference for Strings::trim

List of functions and data types in Strings

Void trim(var String x, Bool(Char) fn=isSpace)

Arguments

Usage

Remove characters in-place from both ends of a String as determined by the trimming function.

str = "  this string needs trimming   ";
trim(str);
// str = "this string needs trimming";

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya