This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:trim [2016/08/12 13:07] admin |
en:trim [2017/09/08 02:40] junior-root |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Trim, LTrim, and RTrim (Function) ====== | + | ===== Trim (Function) ====== |
==== Format ==== | ==== Format ==== | ||
- | **trim** ( [[expressions|expression]] )\\ | + | **trim** ( [[stringexpressions|string_expression]] )\\ |
- | **ltrim** ( [[expressions|expression]] )\\ | + | |
- | **rtrim** ( [[expressions|expression]] ) | + | |
return [[stringexpressions|string_expression]] | return [[stringexpressions|string_expression]] | ||
Line 11: | Line 9: | ||
==== Description ==== | ==== Description ==== | ||
- | The Trim function removes all whitespace characters from both the beginning and ending of a string. | + | The **Trim** function removes all whitespace characters from both the beginning and ending of a string. |
+ | |||
+ | [[RTrim|RTrim]] | ||
+ | |||
+ | ==== 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 ==== |