Using checkASCII in Reader.
This commit is contained in:
parent
e01c40ede5
commit
bfa2f1bd5c
|
@ -130,6 +130,7 @@ final class Reader
|
||||||
new ReaderException("Special unicode characters are not allowed"));
|
new ReaderException("Special unicode characters are not allowed"));
|
||||||
|
|
||||||
this.sliceBuilder = SliceBuilder(this);
|
this.sliceBuilder = SliceBuilder(this);
|
||||||
|
checkASCII();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get character at specified index relative to current position.
|
/// Get character at specified index relative to current position.
|
||||||
|
@ -300,6 +301,7 @@ final class Reader
|
||||||
column_ = 0;
|
column_ = 0;
|
||||||
}
|
}
|
||||||
else if(c != '\uFEFF') { ++column_; }
|
else if(c != '\uFEFF') { ++column_; }
|
||||||
|
checkASCII();
|
||||||
}
|
}
|
||||||
|
|
||||||
lastDecodedBufferOffset_ = bufferOffset_;
|
lastDecodedBufferOffset_ = bufferOffset_;
|
||||||
|
|
Loading…
Reference in a new issue