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 Details

    • fastSplit

      public static String[] fastSplit​(String re, String input, int limit)
      Returns a result equivalent to s.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

      public static String[] split​(Pattern pattern, String re, String input, int limit)