MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / indexOf

Method indexOf

src/main/java/com/rtg/util/StringUtils.java:144–146  ·  view source on GitHub ↗

Like String.indexOf but specifying the furthest allowed position @param src the input string @param delim the delimiter character @param end the end position @return the position where the delimiter is found, or -1

(CharSequence src, char delim, int end)

Source from the content-addressed store, hash-verified

142 * @return the position where the delimiter is found, or -1
143 */
144 public static int indexOf(CharSequence src, char delim, int end) {
145 return indexOf(src, delim, 0, end);
146 }
147
148 /**
149 * Like <code>String.indexOf</code> but specifying the furthest allowed position

Callers 15

testIndexOfMethod · 0.95
ramStringTestMethod · 0.80
testBasicMethod · 0.80
testGGMethod · 0.80
testBigDaddyMethod · 0.80
testBigDaddyNewWifeMethod · 0.80
testBigDaddyGchildMethod · 0.80

Calls 1

lengthMethod · 0.65

Tested by 15

testIndexOfMethod · 0.76
ramStringTestMethod · 0.64
testBasicMethod · 0.64
testGGMethod · 0.64
testBigDaddyMethod · 0.64
testBigDaddyNewWifeMethod · 0.64
testBigDaddyGchildMethod · 0.64