Public Member Functions | |
this (int size=10) | |
TokenStack | clone () |
int | opApply (int(*dg)(inout Token)) |
void | reset () |
Token | findToken (char[] match) |
int | size () |
Token | push (char[] content) |
Token | push (Token token) |
Token | push () |
void | pop () |
Static Public Member Functions | |
bool | isMatch (Token token, char[] match) |
void | resize (inout Token[] tokens, int size) |
Private Attributes | |
int | depth |
Token[] | tokens |
Static Private Attributes | |
const int | MaxTokenStackSize = 256 |
Definition at line 70 of file TokenStack.d.
|
Construct a TokenStack with the specified initial size. The stack will later be resized as necessary. Definition at line 84 of file TokenStack.d. References resize(). |
|
Clone this stack of tokens Definition at line 96 of file TokenStack.d. References depth, Token::set(), tokens, and TokenStack. Referenced by HttpTokens::this(). |
|
Iterate over all tokens in stack Definition at line 116 of file TokenStack.d. |
|
Pop the stack all the way back to zero Definition at line 132 of file TokenStack.d. Referenced by HttpTokens::reset(). |
|
Scan the tokens looking for the first one with a matching name. Returns the matching Token, or null if there is no such match. Definition at line 145 of file TokenStack.d. References isMatch(). Referenced by HttpTokens::get(). |
|
Return the current stack depth Definition at line 164 of file TokenStack.d. |
|
Push a new token onto the stack, and set it content to that provided. Returns the new Token. Definition at line 176 of file TokenStack.d. References push(), and Token::set(). Referenced by HttpTokens::add(), HttpParams::parse(), and HttpHeaders::parse(). |
|
Push a new token onto the stack, and set it content to be that of the specified token. Returns the new Token. Definition at line 188 of file TokenStack.d. References push(), and Token::toString(). |
|
Push a new token onto the stack, and return it. Definition at line 199 of file TokenStack.d. References resize(). Referenced by push(). |
|
Pop the stack by one. Definition at line 212 of file TokenStack.d. |
|
See if the given token matches the specified text. The two must match the minimal extent exactly. Definition at line 227 of file TokenStack.d. References memicmp(), Token::toString(), and version. Referenced by findToken(), and HttpTokens::FilteredTokens::opApply(). |
|
Resize this stack by extending the array. Definition at line 247 of file TokenStack.d. References MaxTokenStackSize, and Token. |
|
Definition at line 72 of file TokenStack.d. Referenced by clone(). |
|
Definition at line 73 of file TokenStack.d. Referenced by clone(). |
|
Definition at line 75 of file TokenStack.d. Referenced by resize(). |