Destutter nquads

This commit is contained in:
kortschak 2014-06-28 13:33:00 +09:30
parent 40f3363cde
commit 177059cc16
3 changed files with 20 additions and 20 deletions

View file

@ -27,7 +27,7 @@ import (
func isWhitespace(s uint8) bool {
return (s == '\t' || s == '\r' || s == ' ')
}
func ParseLineToTriple(str string) *graph.Triple {
func Parse(str string) *graph.Triple {
// Skip leading whitespace.
str = skipWhitespace(str)
// Check for a comment
@ -184,7 +184,7 @@ func ReadNQuadsFromReader(c chan *graph.Triple, reader io.Reader) {
if pre {
continue
}
triple := ParseLineToTriple(line)
triple := Parse(line)
line = ""
if triple != nil {
nTriples++