pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
String
String.SplitIterator

String.SplitIterator

Description

An iterator that iterates over substrings of a string, separated by a character or several different characters.

Note

Typically you don't need to explicitly use the SplitIterator. Expressions like the following are automatically optimized into using a SplitIterator.

foreach(str/"\n", string line) write("%s\n", line);


Inherit predef::Iterator

inherit Iterator : predef::Iterator

Module reference for Pike v7.8 release 116, 2008-12-31