Rebol Programming/trim
Appearance
USAGE:
[edit | edit source]TRIM series /head /tail /auto /lines /all /with str
DESCRIPTION:
[edit | edit source]Removes whitespace from a string. Default removes from head and tail.
TRIM is an action value.
ARGUMENTS
[edit | edit source]- series -- (Type: series port)
REFINEMENTS
[edit | edit source]- /head -- Removes only from the head.
- /tail -- Removes only from the tail.
- /auto -- Auto indents lines relative to first line.
- /lines -- Removes all line breaks and extra spaces.
- /all -- Removes all whitespace.
- /with
- str -- Same as /all, but removes characters in 'str'. (Type: char string)
SOURCE CODE
[edit | edit source]trim: native[ {Removes whitespace from a string. Default removes from head and tail.} series [series! port!] /head "Removes only from the head." /tail "Removes only from the tail." /auto "Auto indents lines relative to first line." /lines "Removes all line breaks and extra spaces." /all "Removes all whitespace." /with str [char! string!] "Same as /all, but removes characters in 'str'." ]