equal
deleted
inserted
replaced
1288 matchList.add(input.subSequence(index, input.length()).toString()); |
1288 matchList.add(input.subSequence(index, input.length()).toString()); |
1289 |
1289 |
1290 // Construct result |
1290 // Construct result |
1291 int resultSize = matchList.size(); |
1291 int resultSize = matchList.size(); |
1292 if (limit == 0) |
1292 if (limit == 0) |
1293 while (resultSize > 0 && matchList.get(resultSize-1).equals("")) |
1293 while (resultSize > 0 && matchList.get(resultSize-1).isEmpty()) |
1294 resultSize--; |
1294 resultSize--; |
1295 String[] result = new String[resultSize]; |
1295 String[] result = new String[resultSize]; |
1296 return matchList.subList(0, resultSize).toArray(result); |
1296 return matchList.subList(0, resultSize).toArray(result); |
1297 } |
1297 } |
1298 |
1298 |