MCPcopy Create free account
hub / github.com/google/re2j / split

Method split

java/com/google/re2j/Pattern.java:204–206  ·  view source on GitHub ↗

Splits input around instances of the regular expression. It returns an array giving the strings that occur before, between, and after instances of the regular expression. Empty strings that would occur at the end of the array are omitted. @param input the input string to be split @return the split

(String input)

Source from the content-addressed store, hash-verified

202 * @return the split strings
203 */
204 public String[] split(String input) {
205 return split(input, 0);
206 }
207
208 /**
209 * Splits input around instances of the regular expression. It returns an array giving the strings

Callers 1

testSplitMethod · 0.45

Calls 8

endMethod · 0.80
startMethod · 0.80
substringMethod · 0.80
inputLengthMethod · 0.80
isEmptyMethod · 0.80
toArrayMethod · 0.80
findMethod · 0.45
addMethod · 0.45

Tested by 1

testSplitMethod · 0.36