add Cursor::readWhile() and skipWhile()