Doc fixes.
This commit is contained in:
parent
fb9525bb00
commit
57afd47bb5
|
@ -144,6 +144,8 @@ final class Reader
|
||||||
// XXX This is risky; revert this if bugs are introduced. We rely on
|
// 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 assumption that Reader only uses peek() to detect end of buffer.
|
||||||
// The test suite passes.
|
// 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");
|
// throw new ReaderException("Trying to read past the end of the buffer");
|
||||||
return '\0';
|
return '\0';
|
||||||
}
|
}
|
||||||
|
@ -152,7 +154,6 @@ final class Reader
|
||||||
// determine the length of some sequence.
|
// determine the length of some sequence.
|
||||||
if(index == lastDecodedCharOffset_)
|
if(index == lastDecodedCharOffset_)
|
||||||
{
|
{
|
||||||
++decodeCount_;
|
|
||||||
++lastDecodedCharOffset_;
|
++lastDecodedCharOffset_;
|
||||||
const char b = buffer_[lastDecodedBufferOffset_];
|
const char b = buffer_[lastDecodedBufferOffset_];
|
||||||
// ASCII
|
// ASCII
|
||||||
|
@ -208,7 +209,8 @@ final class Reader
|
||||||
/// Get specified number of characters starting at current position.
|
/// Get specified number of characters starting at current position.
|
||||||
///
|
///
|
||||||
/// Note: This gets only a "view" into the internal buffer,
|
/// 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
|
/// Params: length = Number of characters (code points, not bytes) to get. May
|
||||||
/// reach past the end of the buffer; in that case the
|
/// reach past the end of the buffer; in that case the
|
||||||
|
@ -626,7 +628,6 @@ private:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
||||||
// Convert a UTF-8/16/32 buffer to UTF-8, in-place if possible.
|
// Convert a UTF-8/16/32 buffer to UTF-8, in-place if possible.
|
||||||
//
|
//
|
||||||
// Params:
|
// Params:
|
||||||
|
|
Loading…
Reference in a new issue