MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / indexOf

Method indexOf

src/org/albite/lang/TextTools.java:219–233  ·  view source on GitHub ↗
(
            final String string, final char[] needles, final int start)

Source from the content-addressed store, hash-verified

217 }
218
219 public static int indexOf(
220 final String string, final char[] needles, final int start) {
221
222 char ch;
223 for (int i = start; i < string.length(); i++) {
224 ch = string.charAt(i);
225 for (int j = 0; j < needles.length; j++) {
226 if (needles[j] == ch) {
227 return i;
228 }
229 }
230 }
231
232 return -1;
233 }
234}

Callers 5

splitMethod · 0.95
getTextForHTMLMethod · 0.45
xmldeclMethod · 0.45
doctypedeclMethod · 0.45
readAttributeMethod · 0.45

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected