forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Trim
angerangel edited this page Mar 20, 2013
·
1 revision
TRIM series /head /tail /auto /lines /all /with str
Removes spaces from strings or nones from blocks or objects.
TRIM is an action value.
- series -- Series (modified) or object (made) (series! object! error! module!)
- /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' (char! string! binary! integer!)
#SOURCE
trim: make action! [ [
{Removes spaces from strings or nones from blocks or objects.}
series [series! object! error! module!] "Series (modified) or object (made)"
/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! binary! integer!] "Same as /all, but removes characters in 'str'"
] ]