import pineapple.ustring; import std.stdio; void main() { // Create a ustring from a char[] ustring str = "Hello World!\nAre the wars over?"c; ustring delimiter = "\n"c; // Split up the string with the delimiter ustring[] lines = str.splitOnString(delimiter); // Print out each one on a new line foreach (ustring line; lines) { writefln(line); } }
