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

Method decodeUnsigned

vm/JavaAPI/src/java/lang/Character.java:1631–1642  ·  view source on GitHub ↗
(CharFlow seq)

Source from the content-addressed store, hash-verified

1629 }
1630
1631 public static int decodeUnsigned(CharFlow seq) {
1632 int number = 0;
1633 int pos = 1;
1634 boolean hasMore;
1635 do {
1636 int digit = decodeDigit(seq.characters[seq.pointer++]);
1637 hasMore = digit % 2 == 1;
1638 number += pos * (digit / 2);
1639 pos *= 46;
1640 } while (hasMore);
1641 return number;
1642 }
1643
1644 public static int decode(CharFlow seq) {
1645 int number = decodeUnsigned(seq);

Callers 4

decodeIntPairsDiffMethod · 0.95
decodeIntDiffMethod · 0.95
decodeMethod · 0.95
decodeLongMethod · 0.95

Calls 1

decodeDigitMethod · 0.95

Tested by

no test coverage detected