Pike v8.0 release 1738

Method Parser.C.split()


Method split

array(string) split(string data, void|mapping(string:string) state)

Description

Splits the data string into an array of tokens. An additional element with a newline will be added to the resulting array of tokens. If the optional argument state is provided the split function is able to pause and resume splitting inside #"" and /**/ tokens. The state argument should be an initially empty mapping, in which split will store its state between successive calls.