Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Trim: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg van (talk | contribs)
No edit summary
 
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 03: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