docs: public static int findSplitpoint(String s, int width) {
      // the newline (or EOS) is the fallback split position.
      int in = s.indexOf(NEWLINE);
      in = in < 0 ? s.length() : in;
      // Good enough?
      if(in < width) {
        return in;
      }
      // otherwise, search for whitespace
      int iw = s.lastIndexOf(' ', width);
      // good whitespace found?
      if(iw >= 0 && iw < width) {
        return iw;
      }
      // sub-optimal splitpoint - retry AFTER the given position
      int bp = nextPosition(s.indexOf(' ', width), s.indexOf(NEWLINE, width));
      if(bp >= 0) {
        return bp;
      }
      // even worse - can't split!
      return s.length();
    }