protected void parseWs() throws OBOFormatParserException { if (s.eol()) { error("Expected at least one white space, but found end of line at pos: "+s.pos); } if (s.eof()) { error("Expected at least one white space, but found end of file."); } if (s.peekChar() == ' ') { s.advance(1); } else { warn("Expected white space at pos: "+s.pos); } }
protected void parseOneOrMoreWs() { if (stream.eol() || stream.eof()) { error("Expected at least one white space at pos: " + stream.pos); } int n = 0; while (stream.peekCharIs(' ')) { stream.advance(1); n++; } if (n == 0) { error("Expected at least one white space at pos: " + stream.pos); } }
protected void parseWs() { if (stream.eol()) { error("Expected at least one white space, but found end of line at pos: " + stream.pos); } if (stream.eof()) { error("Expected at least one white space, but found end of file."); } if (stream.peekChar() == ' ') { stream.advance(1); } else { warn("Expected white space at pos: " + stream.pos); } }
protected void parseWs() { if (stream.eol()) { error("Expected at least one white space, but found end of line at pos: " + stream.pos); } if (stream.eof()) { error("Expected at least one white space, but found end of file."); } if (stream.peekChar() == ' ') { stream.advance(1); } else { warn("Expected white space at pos: " + stream.pos); } }
protected void parseWs() { if (stream.eol()) { error("Expected at least one white space, but found end of line at pos: " + stream.pos); } if (stream.eof()) { error("Expected at least one white space, but found end of file."); } if (stream.peekChar() == ' ') { stream.advance(1); } else { warn("Expected white space at pos: " + stream.pos); } }
protected void parseOneOrMoreWs() { if (stream.eol() || stream.eof()) { error("Expected at least one white space at pos: " + stream.pos); } int n = 0; while (stream.peekCharIs(' ')) { stream.advance(1); n++; } if (n == 0) { error("Expected at least one white space at pos: " + stream.pos); } }
protected void parseZeroOrMoreWs() { if (!stream.eol() && !stream.eof()) { while (stream.peekCharIs(' ')) { stream.advance(1); } } }
protected void parseOneOrMoreWs() { if (stream.eol() || stream.eof()) { error("Expected at least one white space at pos: " + stream.pos); } int n = 0; while (stream.peekCharIs(' ')) { stream.advance(1); n++; } if (n == 0) { error("Expected at least one white space at pos: " + stream.pos); } }
protected void parseWs() { if (stream.eol()) { error("Expected at least one white space, but found end of line at pos: " + stream.pos); } if (stream.eof()) { error("Expected at least one white space, but found end of file."); } if (stream.peekChar() == ' ') { stream.advance(1); } else { warn("Expected white space at pos: " + stream.pos); } }
protected void parseZeroOrMoreWs() { if (!stream.eol() && !stream.eof()) { while (stream.peekCharIs(' ')) { stream.advance(1); } } }
protected void parseOneOrMoreWs() { if (stream.eol() || stream.eof()) { error("Expected at least one white space at pos: " + stream.pos); } int n = 0; while (stream.peekCharIs(' ')) { stream.advance(1); n++; } if (n == 0) { error("Expected at least one white space at pos: " + stream.pos); } }
private String getParseUntilAdv(String compl) { String ret = getParseUntil(compl); stream.advance(1); return ret; }
private String getParseUntilAdv(String compl) { String ret = getParseUntil(compl); stream.advance(1); return ret; }
protected void parseZeroOrMoreWs() { if (!stream.eol() && !stream.eof()) { while (stream.peekCharIs(' ')) { stream.advance(1); } } }
private String getParseUntilAdv(String compl) { String ret = getParseUntil(compl); stream.advance(1); return ret; }
protected void parseOneOrMoreWs() throws OBOFormatParserException { if (s.eol() || s.eof()) { error("Expected at least one white space at pos: "+s.pos); } int n = 0; while (s.peekCharIs(' ')) { s.advance(1); n++; } if ( n == 0) { error("Expected at least one white space at pos: "+s.pos); } }
protected void parseZeroOrMoreWs() { if (!s.eol() && !s.eof()) { while (s.peekCharIs(' ')) { s.advance(1); } } }
private String getParseUntilAdv(String compl) { String ret = getParseUntil(compl); stream.advance(1); return ret; }
protected void parseZeroOrMoreWs() { if (!stream.eol() && !stream.eof()) { while (stream.peekCharIs(' ')) { stream.advance(1); } } }
private String getParseUntilAdv(String compl) { String ret = getParseUntil(compl); s.advance(1); return ret; }