Lines Matching defs:length
36 * expression, {@code CharMatcher}, or by using a fixed substring length. This
159 checkArgument(separator.length() != 0,
167 int delimeterLength = separator.length();
170 for (int p = start, last = toSplit.length() - delimeterLength;
183 return separatorPosition + separator.length();
244 * Returns a splitter that divides strings into pieces of the given length.
247 * smaller than {@code length} but will never be empty.
249 * @param length the desired length of pieces after splitting
253 public static Splitter fixedLength(final int length) {
254 checkArgument(length > 0, "The length may not be less than 1");
261 int nextChunkStart = start + length;
262 return (nextChunkStart < toSplit.length() ? nextChunkStart : -1);
379 end = toSplit.length();