MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / compareChars

Method compareChars

CodenameOne/src/com/codename1/util/regex/RE.java:1653–1659  ·  view source on GitHub ↗
(char c1, char c2, boolean caseIndependent)

Source from the content-addressed store, hash-verified

1651 /// @return negative, 0, or positive integer as the first character
1652 /// less than, equal to, or greater then the second.
1653 private int compareChars(char c1, char c2, boolean caseIndependent) {
1654 if (caseIndependent) {
1655 c1 = RECharacter.toLowerCase(c1);
1656 c2 = RECharacter.toLowerCase(c2);
1657 }
1658 return ((int) c1 - (int) c2);
1659 }
1660}

Callers 2

matchNodesMethod · 0.95
matchMethod · 0.95

Calls 1

toLowerCaseMethod · 0.95

Tested by

no test coverage detected