Skips leading and/or trailing whitespace of a string.
STRCAT("str", mode, trimchars)
"str" |
- |
A string. The input string to process. |
||||||
mode |
- |
Optional. An integer, the trim mode. |
||||||
|
|
|
||||||
"tricmchars" |
- |
Optional. A string, the characters to trim. Defaults to spaces, tabs and newlines. |
A string where the leading whitespace has been eliminated.
strtrim(" aaa bbb")
results in the string: "aaa bbb".
str1 = " " + strescape("\t") + "text";
str2 = strtrim(str1)
str2 == "text"
strtrim(" aaa bbb ", 0)
Returns the string " aaa bbb".
strtrim(" aaa bbb ", 2)
Returns the string "aaa bbb".
strtrim("xyzaaa bbbxyxy", 2, "xyz")
Returns the string "aaa bbb".
STRTRIM removes leading whitespace from
a string, including spaces,