MCPcopy Create free account
hub / github.com/antlr/codebuff / indexIn

Method indexIn

corpus/java/training/guava/base/CharMatcher.java:625–627  ·  view source on GitHub ↗

Returns the index of the first matching character in a character sequence, or -1 if no matching character is present. The default implementation iterates over the sequence in forward order calling #matches for each character. @param sequence the character sequence to examine fro

(CharSequence sequence)

Source from the content-addressed store, hash-verified

623 * @return an index, or {@code -1} if no character matches
624 */
625 public int indexIn(CharSequence sequence) {
626 return indexIn(sequence, 0);
627 }
628
629 /**
630 * Returns the index of the first matching character in a character sequence, starting from a

Callers 6

matchesNoneOfMethod · 0.95
removeFromMethod · 0.95
replaceFromMethod · 0.95
convertMethod · 0.45
separatorStartMethod · 0.45
consumeTokenIfPresentMethod · 0.45

Calls 3

matchesMethod · 0.95
lengthMethod · 0.45
checkPositionIndexMethod · 0.45

Tested by

no test coverage detected