Lines Matching defs:split
320 * String.split() returns [''] when the string to be split is empty. This returns []. This does
321 * not remove any empty strings from the result. For example split("a,", "," ) returns {"a", ""}.
323 * @param text the string to split
329 public static String[] split(String text, String expression) {
333 return text.split(expression, -1);
338 * Splits a string on a pattern. String.split() returns [''] when the string to be
339 * split is empty. This returns []. This does not remove any empty strings from the result.
340 * @param text the string to split
346 public static String[] split(String text, Pattern pattern) {
350 return pattern.split(text, -1);
356 * interface. This also has less overhead than split, which uses regular expressions and
365 * // Once per string to split
379 * <p>If the final character in the string to split is the delimiter then no empty string will
391 * @param delimiter the delimeter on which to split
398 * Sets the string to split
399 * @param string the string to split