@classmethod
def lines(cls, ofstr):
    """ where lines in a string separated by newline comes to (list-of-lines,total-lines) """
    output = []
    i = -1
    l = len(ofstr)
    line, b, i = cls.parse(ofstr, i, len(ofstr), cls.newline)
    while b is not cls.eol:
        output.append(line)
        line, b, i = cls.parse(ofstr, i, len(ofstr), cls.newline)
    output.append(line)
    return output
