44 #ifndef StreamCommandParser_Included
45 #define StreamCommandParser_Included
98 inline bool equals(
const char *token)
110 for (
size_t i = 0; i <
length; i++)
119 off = (off * 10) + (ch -
'0');
131 for (
size_t i = 0; i <
length; i++)
140 off = (off * 10) + (ch -
'0');
int parser(TokenDefinition *ttsp, const char *TokenString, void *userparms)
ParseAction(ActionType a, int(*act)(TokenDefinition *, StreamToken &, void *), void *parm)
int(* afp)(TokenDefinition *, StreamToken &, void *)
ParseAction(ActionType a, int &target, int source)
ParseAction(ActionType a, bool &target)
ParseAction(ActionType a, int &target)
ParseAction(ActionType a, bool &target, bool source)
int applyAction(TokenDefinition *def, StreamToken &token, void *userparms)
bool equals(const char *token)
StreamToken(const char *data)
bool toNumber(int64_t &num)
TokenDefinition(int(*a)(TokenDefinition *, StreamToken &, void *))
int(* actionRoutine)(TokenDefinition *, StreamToken &, void *)
int callUnknown(StreamToken &tokenizer, void *parms)
TokenDefinition(const char *t, size_t l, ParseAction *a)
static int memicmp(const void *opt1, const void *opt2, size_t len)