Parser class that accepts only strings given. More...
#include <Parser.h>
Public Member Functions | |
StringGroupParser (const char *accept_strs[], uint8_t size) | |
Constructor. More... | |
virtual | ~StringGroupParser () |
Destructor. More... | |
virtual bool | parse (const char *input) |
Parse input string. More... | |
![]() | |
virtual | ~AbstractParser () |
Destructor. More... | |
virtual const int8_t & | index () |
Get matched index of after parsing. More... | |
Additional Inherited Members | |
![]() | |
AbstractParser () | |
Constructor. More... | |
![]() | |
int8_t | m_index |
Parser class that accepts only strings given.
Refer to the usage below.
Utility::StringGroupParser::StringGroupParser | ( | const char * | accept_strs[], |
uint8_t | size | ||
) |
Constructor.
[in] | accept_strs | Pointer of condition array sorted with dictionary order. |
[in] | size | Size of the condition array. |
|
virtual |
Destructor.
|
virtual |
Parse input string.
[in] | input | String you want to parse. |
Implements Utility::AbstractParser.