WoW:API strtrim: Difference between revisions

m
Move page script moved page API strtrim to WoW:API strtrim without leaving a redirect
m (New page: {{wowapi}} Trim characters (''chars''), off the left and right of ''str'' local newstr = strtrim(str[, chars]) == Arguments == :(str[, chars]) :;str: String - The input string. :;chars:...)
 
m (Move page script moved page API strtrim to WoW:API strtrim without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
:;str: String - The input string.
:;str: String - The input string.
:;chars: String - A list of characters to remove from the left and right of ''str''.
:;chars: String - A list of characters to remove from the left and right of ''str''.
::: If left off, it defaults to " \t" (<nowiki>[space][tab]</nowiki>).
::: If left off, it defaults to " \t\r\n" (<nowiki>[space][tab][return][newline]</nowiki>).
::: If adding this argument, please note that spaces will not be trimmed unless you include one with the other characters ("123" is not the same as " 123").
::: If adding this argument, please note that spaces will not be trimmed unless you include one with the other characters ("123" is not the same as " 123").


== Returns ==
== Returns ==
Anonymous user