Package java.util.regex
Class Splitter
java.lang.Object
java.util.regex.Splitter
public class Splitter extends Object
Used to make
String.split fast (and to help Pattern.split too).-
Method Summary
Modifier and Type Method Description static String[]fastSplit(String re, String input, int limit)Returns a result equivalent tos.split(separator, limit)if it's able to compute it more cheaply than ICU, or null if the caller should fall back to using ICU.static String[]split(Pattern pattern, String re, String input, int limit)
-
Method Details
-
fastSplit
Returns a result equivalent tos.split(separator, limit)if it's able to compute it more cheaply than ICU, or null if the caller should fall back to using ICU. -
split
-