LookAhead

A char range that allows look ahead buffering and can also collect a buffer of items

Constructors

this
this(Range range)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

clearStash
void clearStash()

Clears current stash

commitStash
string commitStash()

Commit current stash to a string and re-init stash

find
bool find(string search, bool keepStash)

True if suplied string is found in the underlying Input range If not found, it allows the LookAhead to continue iteration from the original position the Input range was when the call was performed.

popFront
void popFront()
Undocumented in source. Be warned that the author may not have intended to support it.
save
void save()

Save current stash as look ahead buffer

stash
void stash()

Buffer current char

stash
void stash(dchar c, bool override_)

Buffer a wide char

Properties

crtStash
const(char)[] crtStash [@property getter]

Get the curent content of the stash

empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
front
char front [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
hasStash
bool hasStash [@property getter]

True if stash has items

range
Range range [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
range
Range range [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta