User Tools

Site Tools


syntax:functions:trim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
syntax:functions:trim [2020/07/29 04:33] dmitrysyntax:functions:trim [2021/08/11 15:18] (current) – [Examples] craigt
Line 1: Line 1:
-===== Trim(text) =====+====== Trim(text) =====
 +Category:  Text function
  
-Trims off all leading and trailing spaces from //text//. Besides spaces it also removes other white-space characters such as tabulation, form feed, etc. [[https://docs.microsoft.com/en-us/dotnet/api/system.char.iswhitespace?view=netcore-3.1#remarks|The full list of removed white-space characters]].+\\  
 +=====Description===== 
 +This function trims off all leading and trailing spaces, and other non-printing characters (see //Remarks//) from //text//.
  
- Example   Result  +\\  
- trim('    Columbia    '   'Columbia'  |+=====Arguments===== 
 +^Argument^Type^Description
 +|text|Text|Any text value or other value that can be implicitly converted to text if required.|
  
 +**Return value type:** Text
 +
 +\\ 
 +=====Remarks=====
 +Besides spaces, it also removes other non-printing, white-space characters such as tabulations, form feeds, etc. [[https://docs.microsoft.com/en-us/dotnet/api/system.char.iswhitespace?view=netcore-3.1#remarks|The full list of removed white-space characters]].
 +
 +\\ 
 +=====Examples=====
 +
 +  trim(' Columbia') //Returns 'Columbia'
 +
 +  trim(' Columbia  ') //Returns 'Columbia'
 +
 +  trim('  Columbia  ') //Returns 'Columbia'
 +
 +\\ 
 +===== See also =====
 +  * [[syntax:functions:trimend|TrimEnd(text)]]
 +  * [[syntax:functions:trimstart|TrimStart(text)]]
  
-**See also** 
-  * [[syntax:functions:trimend]] 
-  * [[syntax:functions:trimstart]] 
syntax/functions/trim.1596011582.txt.gz · Last modified: 2020/07/29 04:33 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki