Difference between revisions of "Trim"

From Catglobe Wiki
Jump to: navigation, search
 
Line 1: Line 1:
[[Category:String_Functions]]
+
{{HelpFiles}}  
{{HelpFiles}}
+
 
 +
= trim  =
 +
 
 +
Removes all occurrences of white space characters from the beginning and end of a string input.
 +
 
 +
==== Syntax ====
  
= trim =
+
trim(''inputString'')
  
Removes all occurrences of white space characters from the beginning and end of a string input.
+
==== Arguments ====
  
====Syntax====
+
inputString: is a string expression.
trim(''inputString'')
 
  
====Arguments====
+
==== Return type ====
  
inputString: is a string expression.
+
string  
  
====Return type====
+
==== Example ====
  
string
+
''print(trim(" CatGlobe ")); ''
  
====Example====
+
''//CatGlobe''
  
print(trim(" CatGlobe “)); //CatGlobe
+
==== Availability ====
  
====Availability====
+
Version 5.2 __NOTOC__
  
Version 5.2
+
[[Category:String_Functions]]
__NOTOC__
 

Latest revision as of 04:44, 23 December 2011



trim

Removes all occurrences of white space characters from the beginning and end of a string input.

Syntax

trim(inputString)

Arguments

inputString: is a string expression.

Return type

string

Example

print(trim(" CatGlobe "));

//CatGlobe

Availability

Version 5.2