MCPcopy Index your code
hub / github.com/dumbledore/AlbiteREADER / split

Method split

src/org/albite/lang/TextTools.java:204–217  ·  view source on GitHub ↗
(final String string, final char[] separators)

Source from the content-addressed store, hash-verified

202// }
203 //#endif
204 public static Vector split(final String string, final char[] separators) {
205 int len = string.length();
206 int lastpos = 0;
207 int pos = 0;
208 final Vector res = new Vector();
209
210 while ((pos = indexOf(string, separators, lastpos)) != -1 && pos < len) {
211 res.addElement(string.substring(lastpos, pos));
212 lastpos = pos + 1;
213 }
214 res.addElement(string.substring(lastpos));
215
216 return res;
217 }
218
219 public static int indexOf(
220 final String string, final char[] needles, final int start) {

Callers 1

relativeToAbsoluteURLMethod · 0.95

Calls 2

indexOfMethod · 0.95
lengthMethod · 0.80

Tested by

no test coverage detected