Returns a BufferedIterator with two extra methods: remaining, which returns the number of characters left to consume, and "freeze".
Returns a BufferedIterator with two extra methods: remaining, which returns the number of characters left to consume, and "freeze". which produces a WrappedCharArray containing the remaining characters without copying.
a copy of the slice of the underlying array.
Convert this WrappedCharArray into a CharBuffer.
Convert this WrappedCharArray into a CharBuffer. If the data originally came
from a String or read-only CharBuffer, the result will be read-only. In neither
case is the data copied.
The underlying array-slice as a CharBuffer.
The underlying array-slice as a String. If the data
was originally from a String and WrappedCharArray.canConvertBackToStringWithoutCopying
is true, this will not involve a copy.
A container for a slice of an
Array[Char]which promises to allow only read-only access to that array. Note it does not itself copy the array, so if there is another reference the data can be mutated by other operations. This is used for copyless lexing of data contained in Strings.