MCPcopy Create free account
hub / github.com/apache/solr / readExpDigits

Method readExpDigits

solr/solrj/src/java/org/noggit/JSONParser.java:612–623  ·  view source on GitHub ↗
(CharArr arr, int lim)

Source from the content-addressed store, hash-verified

610
611 // continuation of readExpStart
612 private int readExpDigits(CharArr arr, int lim) throws IOException {
613 while (--lim >= 0) {
614 int ch = getChar();
615 if (ch >= '0' && ch <= '9') {
616 arr.write(ch);
617 } else {
618 if (ch != -1) start--; // back up
619 return NUMBER;
620 }
621 }
622 return BIGNUMBER;
623 }
624
625 private void continueNumber(CharArr arr) throws IOException {
626 if (arr != out) arr.write(out);

Callers 2

readExpMethod · 0.95
continueNumberMethod · 0.95

Calls 2

getCharMethod · 0.95
writeMethod · 0.65

Tested by

no test coverage detected