Lines Matching refs:last
161 } else if (max < 0) { // "tail" mode: keep the last N
164 byte[] last = null, data = null;
166 if (last != null) rolled = true;
167 byte[] tmp = last; last = data; data = tmp;
172 if (last == null && len <= 0) return "";
173 if (last == null) return new String(data, 0, len);
176 System.arraycopy(last, len, last, 0, last.length - len);
177 System.arraycopy(data, 0, last, last.length - len, len);
179 if (ellipsis == null || !rolled) return new String(last);
180 return ellipsis + new String(last);