Class Splitter


  • public class Splitter
    extends Object
    Used to make String.split fast (and to help Pattern.split too).
    • Method Detail

      • 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.