WoW:API strsplit: Difference between revisions

m
Move page script moved page API strsplit to WoW:API strsplit without leaving a redirect
No edit summary
m (Move page script moved page API strsplit to WoW:API strsplit without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 8: Line 8:


== Arguments ==
== Arguments ==
<!-- List each argument, together with its type -->
;delimiter : String - Characters (bytes) that will be interpreted as delimiter characters (bytes) in the string.
:(delimiter, subject)
;subject : String - String to split.
 
;pieces : Number (optional) - Maximum number of pieces to make (the "last" piece would contain the rest of the string); by default, an unbounded number of pieces is returned.
:;delimiter : String - Delimiter (every single byte of the string will be used to split; see details)
:;subject : String - String to split
:;pieces : integer - Optional argument designating the number of pieces to make.
 


== Returns ==
== Returns ==
<!-- List each return value, together with its type -->
<!-- List each return value, together with its type -->
A list of strings. Not a table.
A list of strings. Not a table. If the delimiter is not found in the subject string, the whole subject string will be returned.


== Example ==
== Example ==
Anonymous user