Property | Type | Description | |
---|---|---|---|
DirectPeek | int | ||
DirectRead | int |
Method | Description | |
---|---|---|
Advance ( ) : void |
Advance the stream by one character.
|
|
AdvancePast ( string needle, bool requireFind = true ) : void |
Advance the stream until needle is encountered, then advance past it. If requireFind = true (which is the default) this method throws an error if needle can not be found.
|
|
AdvancePastWhiteSpace ( ) : void |
Like AdvancePast, but for all whitespace characters. Does not error if not white space is found.
|
|
Dispose ( ) : void | ||
HasMore ( ) : bool |
Returns true if there are more characters to be read from the stream.
|
|
ParserStream ( TextReader wrapped ) : System | ||
Peek ( ) : char |
Looks at the next character in the stream
|
|
PushBack ( IEnumerable |
Puts these characters back into the stream
|
|
Read ( ) : char |
Read a single character from the stream.
|
|
ScanUntil ( StringBuilder buffer ) : char? |
Advances the stream until one of needles is found, placing everything *before* needle into buffer. Advances past the needle as well. If none of the needles are found, an error is encountered. needles appear immediately after \ (the escape char) will not be considered matching.
|
|
ScanUntilWithNesting ( StringBuilder buffer, char needle, bool requireFound = true ) : void |
Advances until c is found, placing everything before needle into buffer. Advances past needle as well. Differs from ScanUtil in that needles between quotes and ()'s are not counted as terminating. needles appear immediately after \ (the escape char) will not be considered matching.
|
|
WhichNextInsensitive ( StringBuilder rejected ) : string |
Advances the stream until one of the strings passed in is encountered (using a case insensitive compare). Returns which of strings was encountered.
|
Method | Description | |
---|---|---|
DirectPeek ( ) : int | ||
DirectRead ( ) : int |
public AdvancePast ( string needle, bool requireFind = true ) : void | ||
needle | string | |
requireFind | bool | |
return | void |
public ParserStream ( TextReader wrapped ) : System | ||
wrapped | TextReader | |
return | System |
public PushBack ( IEnumerable |
||
pushBack | IEnumerable |
|
return | void |
public ScanUntil ( StringBuilder buffer ) : char? | ||
buffer | StringBuilder | |
return | char? |
public ScanUntilWithNesting ( StringBuilder buffer, char needle, bool requireFound = true ) : void | ||
buffer | StringBuilder | |
needle | char | |
requireFound | bool | |
return | void |
public WhichNextInsensitive ( StringBuilder rejected ) : string | ||
rejected | StringBuilder | |
return | string |