Doc fixes.

This commit is contained in:
Ferdinand Majerech 2014-08-05 01:53:17 +02:00
parent fb9525bb00
commit 57afd47bb5

View file

@ -144,6 +144,8 @@ final class Reader
// XXX This is risky; revert this if bugs are introduced. We rely on
// the assumption that Reader only uses peek() to detect end of buffer.
// The test suite passes.
// Revert this case here and in other peek() versions if this causes
// errors.
// throw new ReaderException("Trying to read past the end of the buffer");
return '\0';
}
@ -152,7 +154,6 @@ final class Reader
// determine the length of some sequence.
if(index == lastDecodedCharOffset_)
{
++decodeCount_;
++lastDecodedCharOffset_;
const char b = buffer_[lastDecodedBufferOffset_];
// ASCII
@ -208,7 +209,8 @@ final class Reader
/// Get specified number of characters starting at current position.
///
/// Note: This gets only a "view" into the internal buffer,
/// which get invalidated after other Reader calls.
/// which will get invalidated after other Reader calls. Use SliceBuilder
/// to build slices for permanent use.
///
/// Params: length = Number of characters (code points, not bytes) to get. May
/// reach past the end of the buffer; in that case the
@ -626,7 +628,6 @@ private:
private:
// Convert a UTF-8/16/32 buffer to UTF-8, in-place if possible.
//
// Params: