std-trim | ![]() |
STD-TRIM
trims whitespace from the left and right end of a string. Whitespace is a set of the following characters: Tab "\t", Space " ", Newline "\n" and Carriage Return "\r".
So std-trim
is basically implemented as:
(std-string-right-trim "\t\n\r "
(str-string-left-trim "\t\n\r " str))
(std-trim "\n\t test ") => "test"
str: a string.
A string.
None.
(std-require 'STDSTR)
Defined in STDSTR