Splits string at max width while trying not to split words in half
String to split
Maximum width string allowed to be
string[] arr = "My work here is not done yet".splitStringWidth(7); writeln(arr); // ["My work", " here is ", "not ", "done ", "yet"]
See Implementation
Splits string at max width while trying not to split words in half