MCPcopy
hub / github.com/google/guava / indexIn

Method indexIn

guava/src/com/google/common/base/CharMatcher.java:544–546  ·  view source on GitHub ↗

Returns the index of the first matching BMP character in a character sequence, or {@code -1} if no matching character is present. <p>The default implementation iterates over the sequence in forward order calling {@link #matches} for each character. @param sequence the character sequence to examine

(CharSequence sequence)

Source from the content-addressed store, hash-verified

542 * @return an index, or {@code -1} if no character matches
543 */
544 public int indexIn(CharSequence sequence) {
545 return indexIn(sequence, 0);
546 }
547
548 /**
549 * Returns the index of the first matching BMP character in a character sequence, starting from a

Callers 13

matchesNoneOfMethod · 0.95
removeFromMethod · 0.95
replaceFromMethod · 0.95
convertMethod · 0.45
separatorStartMethod · 0.45
consumeTokenIfPresentMethod · 0.45
reallyTestEmptyMethod · 0.45
reallyTestNoMatchesMethod · 0.45
reallyTestAllMatchesMethod · 0.45

Calls 4

matchesMethod · 0.95
lengthMethod · 0.45
checkPositionIndexMethod · 0.45
charAtMethod · 0.45

Tested by 7

reallyTestEmptyMethod · 0.36
reallyTestNoMatchesMethod · 0.36
reallyTestAllMatchesMethod · 0.36