Lines Matching defs:split
301 * String.split() returns [''] when the string to be split is empty. This returns []. This does
302 * not remove any empty strings from the result. For example split("a,", "," ) returns {"a", ""}.
304 * @param text the string to split
310 public static String[] split(String text, String expression) {
314 return text.split(expression, -1);
319 * Splits a string on a pattern. String.split() returns [''] when the string to be
320 * split is empty. This returns []. This does not remove any empty strings from the result.
321 * @param text the string to split
327 public static String[] split(String text, Pattern pattern) {
331 return pattern.split(text, -1);
337 * interface. This also has less overhead than split, which uses regular expressions and
346 * // Once per string to split
360 * <p>If the final character in the string to split is the delimiter then no empty string will
372 * @param delimiter the delimeter on which to split
379 * Sets the string to split
380 * @param string the string to split