Searched refs:patternBuilder (Results 1 – 1 of 1) sorted by relevance
101 StringBuilder patternBuilder = new StringBuilder(); in createSplitter() local102 patternBuilder.append("["); in createSplitter()103 appendToRegex(separator, patternBuilder); in createSplitter()105 appendToRegex(other, patternBuilder); in createSplitter()107 patternBuilder.append("]"); in createSplitter()108 return Splitter.onPattern(patternBuilder.toString()).omitEmptyStrings(); in createSplitter()111 private static void appendToRegex(char separator, StringBuilder patternBuilder) { in appendToRegex() argument113 patternBuilder.append("\\"); in appendToRegex()115 patternBuilder.append(separator); in appendToRegex()