Difference between revisions of "Trim"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == This trim(s) function will return a new string where the leading and trailing whitespace of string ''s'' has been removed. * '''Pass:''' A String * '''Return…')
 
m (1 revision imported)
 
(No difference)

Latest revision as of 15:45, 15 April 2019

Overview

This trim(s) function will return a new string where the leading and trailing whitespace of string s has been removed.

Example

#include <string>
#include <io>

function void main() {
   var m:="    hello world    ";
   print(m+"-\n"+trim(m)+"-\n");
};

Since: Version 1.0