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

Method readStringBare

solr/solrj/src/java/org/noggit/JSONParser.java:763–787  ·  view source on GitHub ↗
(CharArr arr)

Source from the content-addressed store, hash-verified

761 }
762
763 private void readStringBare(CharArr arr) throws IOException {
764 if (arr != out) {
765 arr.append(out);
766 }
767
768 for (; ; ) {
769 int ch = getChar();
770 if (!isUnquotedStringChar(ch)) {
771 if (ch == -1) break;
772 if (ch == '\\') {
773 arr.write(readEscapedChar());
774 continue;
775 }
776 start--;
777 break;
778 }
779
780 if (ch == '\\') {
781 arr.write(readEscapedChar());
782 continue;
783 }
784
785 arr.write(ch);
786 }
787 }
788
789 // isName==true if this is a field name (as opposed to a value)
790 protected void handleNonDoubleQuoteString(int ch, boolean isName) throws IOException {

Callers 2

readStringCharsMethod · 0.95
readStringChars2Method · 0.95

Calls 5

getCharMethod · 0.95
isUnquotedStringCharMethod · 0.95
readEscapedCharMethod · 0.95
appendMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected