User Tools

Site Tools


en:trim

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:trim [2016/05/12 19:44]
admin
en:trim [2020/02/28 10:46] (current)
Line 1: Line 1:
-===== Trim, LTrim, and RTrim (Function) ======+===== Trim (Function) ======
  
 ==== Format ==== ==== Format ====
  
-**trim** ( //expr// )\\ +**trim** ( [[stringexpressions|string_expression]] )\\
-**ltrim** ( //expr// )\\ +
-**rtrim** ( //expr// )+
  
-return //string_value//+return [[stringexpressions|string_expression]]
  
 ==== Description ==== ==== Description ====
  
-The Trim function removes all whitespace characters from both the beginning and ending of a string.  RTrim trims only the right end and LTrim only trims the left end of the string.+The **Trim** function removes all whitespace characters from both the beginning and ending of a string.\\ 
 +[[RTrim|RTrim]] trims only the right end and [[LTrim|LTrim]] only trims the left end of the string. 
 + 
 +==== Notes ==== 
 +Whitespace means the ASCII characters chr(9) - Horizontal Tab, chr(10) - Newline, chr(11) - Vertical Tab, chr(12) - Formfeed, chr(13) - Carriage Return, ' ' - Space, and many others characetrs from UNICODE like: chr(0xA0) - No-break space, chr(0x2009) - Thin Space, and others. 
 + 
  
 ==== See Also ==== ==== See Also ====
en/trim.1463103885.txt.gz · Last modified: 2020/02/28 10:46 (external edit)