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

Method inRange

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

Returns a {@code char} matcher that matches any character in a given BMP range (both endpoints are inclusive). For example, to match any lowercase letter of the English alphabet, use {@code CharMatcher.inRange('a', 'z')}. @throws IllegalArgumentException if {@code endInclusive < startInclusive}

(char startInclusive, char endInclusive)

Source from the content-addressed store, hash-verified

342 * @throws IllegalArgumentException if {@code endInclusive < startInclusive}
343 */
344 public static CharMatcher inRange(char startInclusive, char endInclusive) {
345 return new InRange(startInclusive, endInclusive);
346 }
347
348 /**
349 * Returns a matcher with identical behavior to the given {@link Character}-based predicate, but

Callers 12

getSimpleNameMethod · 0.95
CaseFormatEnum · 0.95
InternetDomainNameClass · 0.95
testToStringMethod · 0.95
testSetBitsMethod · 0.45
testEmptyMethod · 0.45
testNullMethod · 0.45
testNoMatchesMethod · 0.45
testAllMatchesMethod · 0.45
testGeneralMethod · 0.45

Calls

no outgoing calls

Tested by 8

testToStringMethod · 0.76
testSetBitsMethod · 0.36
testEmptyMethod · 0.36
testNullMethod · 0.36
testNoMatchesMethod · 0.36
testAllMatchesMethod · 0.36
testGeneralMethod · 0.36