company logo

String :: trimmed - Get String without whitespace at start and end.

The function returns a new String object without white spaces at start and the end. White spaces are any of the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.

str = "  lots of whitespace\r\n ";

str = str.trimmed();

// str == "lots of whitespace";

Return value:  String value ( odaba::String & )

Implementation details

odaba::String String  :: trimmed (  )