MCPcopy Create free account
hub / github.com/cschanck/single-file-java / digits

Method digits

src/main/java/org/sfj/JSONOne.java:744–749  ·  view source on GitHub ↗
(StringBuilder ret)

Source from the content-addressed store, hash-verified

742 }
743
744 private String digits(StringBuilder ret) {
745 for (char p = peek(); Character.isDigit(p); p = peek()) {
746 ret.append(advance());
747 }
748 return ret.toString();
749 }
750
751 private Token advanceMatching(String next, boolean caseMatters, TokenType type) throws ParseException {
752 if (!caseMatters) {

Callers 3

numberTokenMethod · 0.95
exponentMethod · 0.95
integerMethod · 0.95

Calls 4

peekMethod · 0.95
advanceMethod · 0.95
appendMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected