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

Method isNewline

CodenameOne/src/com/codename1/util/regex/RE.java:1632–1637  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

1630 ///
1631 /// true if character at i-th position in the `search` string is a newline
1632 private boolean isNewline(int i) {
1633 char nextChar = search.charAt(i);
1634
1635 return nextChar == '\n' || nextChar == '\r' || nextChar == '\u0085' ||
1636 nextChar == '\u2028' || nextChar == '\u2029';
1637 }
1638
1639 /// Compares two characters.
1640 ///

Callers 2

matchNodesMethod · 0.95
matchMethod · 0.95

Calls 1

charAtMethod · 0.65

Tested by

no test coverage detected